]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: simple_panel: use regulator_set_enable_if_allowed
authorSvyatoslav Ryhel <clamor95@gmail.com>
Tue, 3 Oct 2023 06:25:33 +0000 (09:25 +0300)
committerAnatolij Gustschin <agust@denx.de>
Sun, 22 Oct 2023 17:25:10 +0000 (19:25 +0200)
commit66ac14f7ef974e5d9404ff9b354590554e405409
tree9151095253f7931995309a5651076593f06b6cb4
parent251ff3493233a8fddd4468ff341d63d592b608d4
video: simple_panel: 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/simple_panel.c