]> git.dujemihanovic.xyz Git - u-boot.git/commit
regulator: bd718x7: Bypass bogus warnings
authorMarek Vasut <marex@denx.de>
Tue, 25 Jan 2022 02:46:52 +0000 (03:46 +0100)
committerStefano Babic <sbabic@denx.de>
Sat, 5 Feb 2022 14:49:01 +0000 (15:49 +0100)
commit1b7f00eb1f239973ef459a3608ab5335011c6ab5
treeb653f252598f0205eb7d940c961f4b5097040680
parent1289ff7bd7e4429aabbc33d37c4a93fd1e437d07
regulator: bd718x7: Bypass bogus warnings

When regulator consumer attempts to set enabled DVS regulator voltage,
the driver aborts with "Only DVS bucks can be changed when enabled".
In case the regulator is already set to specified voltage, do nothing
instead of failing outright.

When regulator consumer attempts to set enables regulator which cannot
be controlled because it is already always enabled, the driver aborts
with -EINVAL. Again, do nothing in such case and return 0, because the
request is really fulfilled, the regulator is enabled.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
drivers/power/regulator/bd71837.c