]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: pwm_backlight: use regulator_set_enable_if_allowed
authorSvyatoslav Ryhel <clamor95@gmail.com>
Tue, 3 Oct 2023 06:25:32 +0000 (09:25 +0300)
committerAnatolij Gustschin <agust@denx.de>
Sun, 22 Oct 2023 17:23:47 +0000 (19:23 +0200)
commit251ff3493233a8fddd4468ff341d63d592b608d4
tree40b1d7f58663c2acaa28782dd87fbaf1c1bd0ec2
parent9a3a58396b78b1f9d0c14580dc03f81d29207dd2
video: pwm_backlight: use regulator_set_enable_if_allowed

With the commit 4fcba5d556b4 ("regulator: implement basic reference
counter") the return value of regulator_set_enable may be EALREADY or
EBUSY for fixed/gpio regulators and may be further expanded on all
regulators.

Change to use the more relaxed regulator_set_enable_if_allowed to
continue if regulator already was enabled or disabled.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
drivers/video/pwm_backlight.c