diff options
author | Philippe Schenker <philippe.schenker@toradex.com> | 2019-07-02 09:16:09 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2020-02-11 09:48:23 +0100 |
commit | 84339555a5eca429ff14e32caa7fec2a064e2e2c (patch) | |
tree | 89bfbc4d6597322a494b5408f20f94f899c79e8e /drivers | |
parent | ebf477f4b29e9e480153b8e14df26b0824c218d0 (diff) |
Video: backlight: Enable backlight in any case
This patch enables the backlight in any case. Mainline assumes now
that backlight is turned on from an appropriate driver to get
flickerless backlight experience.
Theres no such thing in downstream, so get rid of the code part that
blocks backlight from turning on.
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/backlight/pwm_bl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c index ec82637c26b4..3d0029c5e8ac 100644 --- a/drivers/video/backlight/pwm_bl.c +++ b/drivers/video/backlight/pwm_bl.c @@ -228,7 +228,7 @@ static int pwm_backlight_initial_power_state(const struct pwm_bl_data *pb) * assume that another driver will enable the backlight at the * appropriate time. Therefore, if it is disabled, keep it so. */ - +#if 0 /* if the enable GPIO is disabled, do not enable the backlight */ if (pb->enable_gpio && gpiod_get_value_cansleep(pb->enable_gpio) == 0) return FB_BLANK_POWERDOWN; @@ -240,7 +240,7 @@ static int pwm_backlight_initial_power_state(const struct pwm_bl_data *pb) /* The PWM is disabled, keep it like this */ if (!pwm_is_enabled(pb->pwm)) return FB_BLANK_POWERDOWN; - +#endif return FB_BLANK_UNBLANK; } |