Skip to content

Commit 3b53bf1

Browse files
tdzlag-linaro
authored andcommitted
backlight: lms283gf05: Use lcd power constants
Replace FB_BLANK_ constants with their counterparts from the lcd subsystem. The values are identical, so there's no change in functionality. Signed-off-by: Thomas Zimmermann <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 4be0de9 commit 3b53bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/lms283gf05.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ static int lms283gf05_power_set(struct lcd_device *ld, int power)
126126
struct lms283gf05_state *st = lcd_get_data(ld);
127127
struct spi_device *spi = st->spi;
128128

129-
if (power <= FB_BLANK_NORMAL) {
129+
if (power <= LCD_POWER_REDUCED) {
130130
if (st->reset)
131131
lms283gf05_reset(st->reset);
132132
lms283gf05_toggle(spi, disp_initseq, ARRAY_SIZE(disp_initseq));

0 commit comments

Comments
 (0)