of: Change of_device_is_available() to return bool

This function can only return true or false; using a bool makes it more
obvious to the reader.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Signed-off-by: Grant Likely <grant.likely@linaro.org>
This commit is contained in:
Kevin Cernekee 2014-11-12 12:54:01 -08:00 committed by Grant Likely
parent 25c7a1de6c
commit 53a4ab96c6
2 changed files with 14 additions and 14 deletions

View file

@ -276,7 +276,7 @@ extern int of_property_read_string_helper(struct device_node *np,
const char **out_strs, size_t sz, int index);
extern int of_device_is_compatible(const struct device_node *device,
const char *);
extern int of_device_is_available(const struct device_node *device);
extern bool of_device_is_available(const struct device_node *device);
extern const void *of_get_property(const struct device_node *node,
const char *name,
int *lenp);
@ -427,9 +427,9 @@ static inline int of_device_is_compatible(const struct device_node *device,
return 0;
}
static inline int of_device_is_available(const struct device_node *device)
static inline bool of_device_is_available(const struct device_node *device)
{
return 0;
return false;
}
static inline struct property *of_find_property(const struct device_node *np,