]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: backlight: fix pwm inversion
authorMarc Dietrich <marvin24@gmx.de>
Tue, 2 Jul 2019 20:08:33 +0000 (22:08 +0200)
committerAnatolij Gustschin <agust@denx.de>
Sat, 6 Jul 2019 21:31:52 +0000 (23:31 +0200)
commita2c4ef097774e70f0afc4ab25f53b769c6da3397
treed12e595c7ce710091235320838dd6eaa00b0741a
parent1f83431f0053f6fb20c511c391ffc687433848cf
video: backlight: fix pwm inversion

set_pwm() will always fail with -ENOSYS if pwm_ops set_invert() is
not implemented, leaving the backlight dark. Fix this by returning
no error if set_invert() is not implemented and no polarity change
is requested.

Fixes: 57e7775413 ("video: backlight: Parse PWM polarity cell")
Signed-off-by: Marc Dietrich <marvin24@gmx.de>
drivers/video/pwm_backlight.c