summaryrefslogtreecommitdiff
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorKevin Cernekee <cernekee@gmail.com>2014-11-12 23:54:01 +0300
committerGrant Likely <grant.likely@linaro.org>2014-11-18 20:32:55 +0300
commit53a4ab96c61a34d62717b1481f6043e0b4338d74 (patch)
tree080fa624bc76f9d2f8b5816860713f500ae4e748 /include/linux/of.h
parent25c7a1de6c4b9f9eb867af4dc9215bbf9e08ef2e (diff)
downloadlinux-53a4ab96c61a34d62717b1481f6043e0b4338d74.tar.xz
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>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 3c851a8f23eb..27635c89d8c2 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -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,