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) |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| adc.c | ||
| blk.c | ||
| bus.c | ||
| clk.c | ||
| cmd_dm.c | ||
| core.c | ||
| eth.c | ||
| gpio.c | ||
| i2c.c | ||
| led.c | ||
| mailbox.c | ||
| mmc.c | ||
| pci.c | ||
| phy.c | ||
| pmic.c | ||
| power-domain.c | ||
| pwm.c | ||
| ram.c | ||
| regmap.c | ||
| regulator.c | ||
| remoteproc.c | ||
| reset.c | ||
| rtc.c | ||
| sf.c | ||
| spi.c | ||
| spmi.c | ||
| syscon.c | ||
| sysreset.c | ||
| test-driver.c | ||
| test-fdt.c | ||
| test-main.c | ||
| test-uclass.c | ||
| timer.c | ||
| usb.c | ||
| video.c | ||
| wdt.c | ||