sonynwz: fix backlight

Apparently the backlight driver is leaking current even when the PWM set to 0.
This patch should greatly improve the battery life of the device.

Change-Id: I76bbc8a87cae452e599b37de17e91f373cee58bc
This commit is contained in:
Amaury Pouly 2014-06-30 20:57:37 +02:00
parent ae9b78ee2e
commit 6e575b6c70

View file

@ -29,8 +29,10 @@
void _backlight_set_brightness(int brightness)
{
bool en = brightness > 0;
imx233_pwm_setup_simple(2, 24000, 100 - brightness);
imx233_pwm_enable(2, true);
imx233_pwm_enable(2, en);
imx233_pinctrl_set_gpio(0, 10, en);
}
bool _backlight_init(void)