rv1126-uboot/include/dm
Simon Glass 440e24d771 UPSTREAM: dm: core: Add a function to look up a uclass by name
Each uclass has a driver name which we can use to look up the uclass. This
is useful for logging, where the uclass ID is used as the category.

Add a function to handle this, as well as a test.

Change-Id: Id221809d6f9f818b52a5bf88f4e12d409a070f05
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 6e43d1b19982b1756b7c607569d1778e556d6577)
2018-02-11 19:58:01 +08:00
..
platform_data serial: stm32x7: migrate serial struct to driver 2017-07-26 11:26:54 -04:00
device-internal.h dm: core: Add a comment about the device_remove() flags 2017-08-17 16:44:16 +09:00
device.h UPSTREAM: dm: define dev_*() log functions in DM header 2018-01-17 15:27:28 +08:00
fdtaddr.h dm: core: Add livetree address functions 2017-06-01 07:03:07 -06:00
lists.h dm: core: Update device_bind_driver_to_node() to use ofnode 2017-06-01 07:03:08 -06:00
of.h dm: Add more livetree helpers and definitions 2017-06-01 07:03:12 -06:00
of_access.h dm: core: add ofnode_count_phandle_with_args() 2017-07-28 23:34:08 +02:00
of_addr.h dm: core: Add livetree address functions 2017-06-01 07:03:07 -06:00
of_extra.h dm: core: Add a place to put extra device-tree reading functions 2017-06-01 07:03:07 -06:00
ofnode.h core: add ofnode_get_by_phandle() api 2018-02-08 21:56:47 +08:00
pinctrl.h
platdata.h UPSTREAM: dm: core: remove orphaned parameter description in platdata.h 2018-01-17 15:27:28 +08:00
read.h core: read: fix some device may not have of node 2018-01-26 08:37:05 +08:00
root.h UPSTREAM: dm: core: add clocks node scan 2018-01-16 18:13:59 +08:00
test.h dm: core: Run tests with both livetree and flat tree 2017-06-01 07:03:10 -06:00
uclass-id.h dm: add note for UCLASS_FG and UCLASS_KEY id 2017-11-03 11:57:12 +08:00
uclass-internal.h dm: core: Add a way to find a device by ofnode 2017-06-01 07:03:08 -06:00
uclass.h UPSTREAM: dm: core: Add a function to look up a uclass by name 2018-02-11 19:58:01 +08:00
util.h UPSTREAM: dm: replace dm_dbg() with pr_debug() 2018-01-17 15:27:28 +08:00