aboutsummaryrefslogtreecommitdiff
path: root/include/dm/platdata.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-15 17:25:25 +1300
committerSimon Glass <sjg@chromium.org>2021-03-26 17:03:08 +1300
commit6ba46a0f21df1804e1c98334215ac57a495d9655 (patch)
tree02717aec71fe74e14c6956a57454a61e1f10cff8 /include/dm/platdata.h
parent8813986dfde89ae2eab2a2315e1d23e4784c3d88 (diff)
downloadu-boot-6ba46a0f21df1804e1c98334215ac57a495d9655.zip
u-boot-6ba46a0f21df1804e1c98334215ac57a495d9655.tar.gz
u-boot-6ba46a0f21df1804e1c98334215ac57a495d9655.tar.bz2
dm: core: Drop device_get_by_driver_info()
This function is now only used in a test. Drop it. Also drop DM_DRVINFO_GET() which was the only purpose for having the function. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm/platdata.h')
-rw-r--r--include/dm/platdata.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/dm/platdata.h b/include/dm/platdata.h
index 3821a56..4efb1df 100644
--- a/include/dm/platdata.h
+++ b/include/dm/platdata.h
@@ -71,19 +71,4 @@ struct driver_rt {
#define U_BOOT_DRVINFOS(__name) \
ll_entry_declare_list(struct driver_info, __name, driver_info)
-/**
- * Get a pointer to a given device info given its name
- *
- * With the declaration U_BOOT_DRVINFO(name), DM_DRVINFO_GET(name) will return a
- * pointer to the struct driver_info created by that declaration.
- *
- * if OF_PLATDATA is enabled, from this it is possible to use the @dev member of
- * struct driver_info to find the device pointer itself.
- *
- * @__name: Driver name (C identifier, not a string. E.g. gpio7_at_ff7e0000)
- * @return struct driver_info * to the driver that created the device
- */
-#define DM_DRVINFO_GET(__name) \
- ll_entry_get(struct driver_info, __name, driver_info)
-
#endif