commit | 251ff3493233a8fddd4468ff341d63d592b608d4 | [log] [tgz] |
---|---|---|
author | Svyatoslav Ryhel <clamor95@gmail.com> | Tue Oct 03 09:25:32 2023 +0300 |
committer | Anatolij Gustschin <agust@denx.de> | Sun Oct 22 19:23:47 2023 +0200 |
tree | 40b1d7f58663c2acaa28782dd87fbaf1c1bd0ec2 | |
parent | 9a3a58396b78b1f9d0c14580dc03f81d29207dd2 [diff] |
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>