]> git.dujemihanovic.xyz Git - u-boot.git/commit
adc: Allow use of adc with DM_REGULATOR disabled
authorJonas Karlman <jonas@kwiboo.se>
Thu, 17 Oct 2024 20:00:25 +0000 (20:00 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 26 Oct 2024 02:46:48 +0000 (10:46 +0800)
commitbcbfd1bb373e11838f117d193a4590d6af0ba2ae
tree570cdfdacfb53c220ee015dbfa0c46959561eb30
parentd1c38bb4a80f1d5b4797f892adeb0cf35440d69a
adc: Allow use of adc with DM_REGULATOR disabled

When DM_REGULATOR=n is used the device_get_supply_regulator() function
always return -ENOSYS.

Change to treat missing support for regulators as a missing optional
vdd/vss-supply regulator to reduce error messages being logged.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/adc/adc-uclass.c