summaryrefslogtreecommitdiff
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.com>2026-06-16 21:47:16 +0200
committerJiri Kosina <jkosina@suse.com>2026-06-16 21:47:16 +0200
commitaa776949fb77462ee712eee28bc54a9ce95c5b40 (patch)
tree389848f195054d64ac6fc137a2218e0a63655288 /include/linux/of.h
parent6df6b1f2c49678211f65647c300bc51dda02893b (diff)
parent12b7731995ca577d86e02196e99ba9c126f47282 (diff)
Merge branch 'for-7.2/wiimote' into for-linus
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 2b95777f16f6..959786f8f196 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -410,7 +410,7 @@ extern int of_alias_get_id(const struct device_node *np, const char *stem);
extern int of_alias_get_highest_id(const char *stem);
bool of_machine_compatible_match(const char *const *compats);
-bool of_machine_device_match(const struct of_device_id *matches);
+const struct of_device_id *of_machine_get_match(const struct of_device_id *matches);
const void *of_machine_get_match_data(const struct of_device_id *matches);
/**
@@ -880,9 +880,9 @@ static inline bool of_machine_compatible_match(const char *const *compats)
return false;
}
-static inline bool of_machine_device_match(const struct of_device_id *matches)
+static inline const struct of_device_id *of_machine_get_match(const struct of_device_id *matches)
{
- return false;
+ return NULL;
}
static inline const void *
@@ -990,6 +990,11 @@ static inline int of_numa_init(void)
}
#endif
+static inline bool of_machine_device_match(const struct of_device_id *matches)
+{
+ return of_machine_get_match(matches) != NULL;
+}
+
static inline struct device_node *of_find_matching_node(
struct device_node *from,
const struct of_device_id *matches)