mirror of https://gitee.com/openkylin/linux.git
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: Marek Vasut <marek.vasut@gmail.com> Acked-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ed3a6787bf
commit
6bde9082c5
|
@ -129,7 +129,7 @@ static int lms283gf05_power_set(struct lcd_device *ld, int power)
|
|||
struct spi_device *spi = st->spi;
|
||||
struct lms283gf05_pdata *pdata = spi->dev.platform_data;
|
||||
|
||||
if (power) {
|
||||
if (power <= FB_BLANK_NORMAL) {
|
||||
if (pdata)
|
||||
lms283gf05_reset(pdata->reset_gpio,
|
||||
pdata->reset_inverted);
|
||||
|
|
Loading…
Reference in New Issue