rv1126-uboot/test/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
..
Kconfig
Makefile dm: test: Add tests for the generic PHY uclass 2017-05-09 12:14:16 -06:00
adc.c
blk.c dm: blk: Add a way to obtain a block device from its parent 2017-06-09 20:25:16 +09:00
bus.c test: bus: Add a check that dev is not NULL 2017-06-12 08:38:10 -04:00
clk.c
cmd_dm.c
core.c UPSTREAM: dm: core: Add a function to look up a uclass by name 2018-02-11 19:58:01 +08:00
eth.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
gpio.c
i2c.c
led.c dm: led: Add support for blinking LEDs 2017-04-14 19:38:57 -06:00
mailbox.c
mmc.c
pci.c
phy.c dm: phy: Update tests to use ut_asserteq() 2017-06-01 07:03:14 -06:00
pmic.c
power-domain.c
pwm.c test: pwm: Add a check that dev is not NULL 2017-06-12 08:38:06 -04:00
ram.c
regmap.c
regulator.c UPSTREAM: power: extend prefix match to regulator-name property 2018-01-17 15:27:28 +08:00
remoteproc.c
reset.c
rtc.c
sf.c
spi.c
spmi.c
syscon.c
sysreset.c
test-driver.c dm: test: Add test for device removal 2017-04-04 20:15:10 -06:00
test-fdt.c dm: core: Add uclass_first/next_device_check() 2017-07-11 10:08:19 -06:00
test-main.c UPSTREAM: dm: test: replace dm_scan_dt() by of dm_extended_scan_fdt() in dm_do_test 2018-01-16 18:13:59 +08:00
test-uclass.c
timer.c
usb.c
video.c
wdt.c test: wdt: Add a check that dev is not NULL 2017-06-12 08:38:09 -04:00