u-boot/test/dm
Simon Glass 3cf0fba4ff dm: core: Allow iterating devices without uclass_get()
At present we have uclass_foreach_dev() which requires that uclass_get()
be called beforehand to find the uclass. This is good if we suspect that
that function might fail, but often we know that the uclass is available.

Add a new helper which does this uclass_get() automatically, so that only
the uclass ID is needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2020-02-07 22:41:24 +08:00
..
adc.c test: dm: adc: use the real device name 2019-07-12 21:07:58 -04:00
audio.c dm: sound: Create a uclass for audio codecs 2018-12-13 16:32:49 -07:00
axi.c test: Add AXI test 2018-08-11 08:11:02 +02:00
blk.c test: dm: blk: Correct blk_base test case 2018-11-14 09:16:27 -08:00
board.c test: Add tests for board uclass 2018-09-29 11:49:35 -06:00
bootcount.c test: bootcount: add bootcount-uclass test 2019-01-14 17:41:23 -05:00
bus.c dm: core: Add a function to count the children of a device 2019-10-11 10:07:33 -04:00
cache.c dm: cache: Add enable and disable ops for sandbox and test 2019-09-03 09:31:03 +08:00
clk_ccf.c sandbox: clk: add clk enable/disable test code 2019-08-22 00:10:09 +02:00
clk.c test: clk: test clock self assignment 2019-10-22 16:14:05 +02:00
core.c dm: core: Correct the return value for uclass_find_first_device() 2019-10-08 13:57:38 +08:00
cpu.c test: Add tests for CPU uclass 2018-09-18 08:12:21 -06:00
devres.c dm: devres: Add a new OFDATA phase 2020-01-07 16:02:39 -07:00
dma.c test: dma: add dma-uclass test 2018-12-07 08:13:45 -05:00
dsi_host.c dm: Add a dsi host uclass 2019-10-13 23:34:43 +02:00
eth.c env: Move env_set() to env.h 2019-08-11 16:43:41 -04:00
firmware.c dm: test: Add "/firmware" node scan test 2018-09-29 11:49:35 -06:00
gpio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
hwspinlock.c dm: Add Hardware Spinlock class 2018-12-06 23:26:32 -05:00
i2c.c dm: i2c: EEPROM simulator add tests for addr offset mask 2019-12-17 06:57:31 +01:00
i2s.c dm: sound: Create a uclass for i2s 2018-12-13 16:32:49 -07:00
irq.c sandbox: Add a test for IRQ 2019-12-15 11:44:12 +08:00
Kconfig test: Move the unit tests to their own menu 2015-05-21 09:16:17 -04:00
led.c sandbox: led: use new function to configure default state 2018-08-10 10:27:32 -04:00
mailbox.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile dm: Increased separation of ofdata_to_platdata() and probe methods 2020-01-09 08:52:21 -05:00
mdio_mux.c test: dm: add a test for MDIO MUX DM uclass 2019-07-18 16:37:13 -05:00
mdio.c test: dm_mdio: add a 2nd register to the emulated PHY 2019-07-18 16:37:13 -05:00
misc.c misc: Update read() and write() methods to return bytes xfered 2018-11-20 19:14:22 -07:00
mmc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
nop.c dm: Add a No-op uclass 2019-07-05 14:19:41 +02:00
ofnode.c dm: core: Update ofnode to read binman-style flash entry 2018-10-09 04:40:27 -06:00
osd.c video_osd: Add osd sandbox driver and tests 2018-09-28 18:26:52 +02:00
p2sb.c sandbox: Add PCI driver and test for p2sb 2019-12-15 11:44:11 +08:00
panel.c panel: Expand the backlight support 2018-10-09 04:40:27 -06:00
pch.c pch: Add ioctl support 2019-02-20 15:27:08 +08:00
pci_ep.c test: pci_ep: add basic pci_ep tests 2019-07-11 10:05:15 -04:00
pci.c dm: pci: Add a function to read a PCI BAR 2019-10-08 13:57:43 +08:00
phy.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmc.c x86: sandbox: Add a PMC emulator and test 2019-12-15 11:44:11 +08:00
pmic.c sandbox: tests: Add tests for mc34708 PMIC device 2018-05-18 08:27:26 +02:00
power-domain.c dm: power-domain: query power domain after get device 2018-08-06 11:52:19 +02:00
pwm.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ram.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
regmap.c test: regmap: check the values read from the regmap 2019-10-27 10:56:41 -06:00
regulator.c dm: regulator: support regulator more state 2019-11-10 20:31:09 +08:00
remoteproc.c remoteproc: elf_loader: Add elf resource table load support 2020-01-07 11:13:25 -05:00
reset.c test/dm: reset: Add reset_get_by_index[_nodev] test 2019-05-09 00:44:13 +05:30
rng.c test: rng: Add basic test for random number generator(rng) uclass 2020-01-07 18:08:21 +01:00
rtc.c dm: sandbox: i2c: Use new emulator parent uclass 2018-11-29 09:30:05 -07:00
serial.c dm: serial: Adjust serial_getinfo() to use proper API 2019-01-14 17:47:13 -07:00
sf.c common: Move command functions out of common.h 2019-12-02 18:25:02 -05:00
smem.c test: smem: add basic smem test 2018-07-19 17:03:28 -04:00
sound.c sound: Add uclass operations for beeping 2019-02-20 15:27:08 +08:00
spi.c test: dm: spi: Fix sandbox dm_test_spi_find() 2020-01-27 22:27:21 +05:30
spmi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
syscon.c syscon: update syscon_regmap_lookup_by_phandle 2019-04-11 20:10:05 -06:00
sysreset.c sandbox: sysreset: Update to support power-on reset 2018-12-05 06:01:34 -07:00
tee.c test: tee: fix resource leak in dm_test_tee() 2018-11-01 10:02:43 -04:00
test-driver.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
test-fdt.c dm: core: Allow iterating devices without uclass_get() 2020-02-07 22:41:24 +08:00
test-main.c dm: test: Correct a stray backslash in dm_test_destroy() 2019-10-08 13:57:39 +08:00
test-uclass.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
timer.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
usb.c dm: test: usb: rework keyboard test 2019-11-25 13:28:53 +01:00
video.c video: Factor out vidconsole_put_string() 2019-05-20 12:00:05 +02:00
virtio.c test: dm: virtio: Add test cases for virtio uclass 2018-11-14 09:16:28 -08:00
wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00