Commit 6bde9082 authored by Marek Vasut's avatar Marek Vasut Committed by Linus Torvalds

backlight: fix blanking for LMS283GF05 LCD

The LCD was turned on if the variable power was > 0, but that was
incorrect.  The LCD has to be turned on in NORMAL and UNBLANK case.
Signed-off-by: default avatarMarek Vasut <marek.vasut@gmail.com>
Acked-by: default avatarRichard Purdie <rpurdie@rpsys.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ed3a6787
...@@ -129,7 +129,7 @@ static int lms283gf05_power_set(struct lcd_device *ld, int power) ...@@ -129,7 +129,7 @@ static int lms283gf05_power_set(struct lcd_device *ld, int power)
struct spi_device *spi = st->spi; struct spi_device *spi = st->spi;
struct lms283gf05_pdata *pdata = spi->dev.platform_data; struct lms283gf05_pdata *pdata = spi->dev.platform_data;
if (power) { if (power <= FB_BLANK_NORMAL) {
if (pdata) if (pdata)
lms283gf05_reset(pdata->reset_gpio, lms283gf05_reset(pdata->reset_gpio,
pdata->reset_inverted); pdata->reset_inverted);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment