commit | 0242ebec840b6fc2957e6384e29905da405b85e5 | [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 | 5745b4b0549414c334dff712a798f8ecb4a4780a [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>