]> git.baikalelectronics.ru Git - uboot.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)
commit37ed6b52217cbefb4a42dd8c80cb717a4d7d834e
treeb653f252598f0205eb7d940c961f4b5097040680
parent626ac984c92664b51d38daaa0dc62548ee31aab1
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