diff options
author | Rob Herring <robh@kernel.org> | 2023-03-29 10:52:00 -0500 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2023-04-13 17:46:15 -0500 |
commit | 82174a0a9c5cf36a3e421fc1d2c86998d8023f61 (patch) | |
tree | dd8dcb336931639fcbe481738c18601faf2431a8 /include/linux/of_device.h | |
parent | 4c32fb7dcf65b16cc7b2837ccfc35d00be92bddb (diff) |
of: Move of_device_get_match_data() declaration
of_device.h mostly defines functions for bus drivers whereas
of_device_get_match_data() is used by drivers. Let's move it to of.h.
Link: https://lore.kernel.org/r/20230329-dt-cpu-header-cleanups-v1-3-581e2605fe47@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'include/linux/of_device.h')
-rw-r--r-- | include/linux/of_device.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/of_device.h b/include/linux/of_device.h index e4aa61cb2bd0..a54df77370fa 100644 --- a/include/linux/of_device.h +++ b/include/linux/of_device.h @@ -26,8 +26,6 @@ static inline int of_driver_match_device(struct device *dev, return of_match_device(drv->of_match_table, dev) != NULL; } -extern const void *of_device_get_match_data(const struct device *dev); - extern ssize_t of_device_modalias(struct device *dev, char *str, ssize_t len); extern int of_device_request_module(struct device *dev); @@ -63,11 +61,6 @@ static inline int of_driver_match_device(struct device *dev, static inline void of_device_uevent(const struct device *dev, struct kobj_uevent_env *env) { } -static inline const void *of_device_get_match_data(const struct device *dev) -{ - return NULL; -} - static inline int of_device_modalias(struct device *dev, char *str, ssize_t len) { |