diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2023-12-14 13:31:49 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-03-03 14:20:29 +0300 |
commit | cefdb366dcbe97908b6055595a15bf7689556bf8 (patch) | |
tree | 87a5e2ef90adc154372ca5a59bd87491a817a96b /include/linux/of.h | |
parent | c029b22f8a98e14988f800d5c0176a9eaec3c8db (diff) | |
download | linux-cefdb366dcbe97908b6055595a15bf7689556bf8.tar.xz |
of: Change of_machine_is_compatible() to return bool
of_machine_is_compatible() currently returns a positive integer if it
finds a match. However none of the callers ever check the value, they
all treat it as a true/false.
So change of_machine_is_compatible() to return bool, which will allow
the implementation to be changed in a subsequent patch.
Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231214103152.12269-2-mpe@ellerman.id.au
Diffstat (limited to 'include/linux/of.h')
-rw-r--r-- | include/linux/of.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index e3418babc203..c5c663a7fb77 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -402,7 +402,7 @@ extern void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align)); extern int of_alias_get_id(struct device_node *np, const char *stem); extern int of_alias_get_highest_id(const char *stem); -extern int of_machine_is_compatible(const char *compat); +extern bool of_machine_is_compatible(const char *compat); bool of_machine_compatible_match(const char *const *compats); extern int of_add_property(struct device_node *np, struct property *prop); |