Skip to content

Commit 7c14e7a

Browse files
tdzlag-linaro
authored andcommitted
backlight: otm3225a: 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 a42a215 commit 7c14e7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/otm3225a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ static int otm3225a_set_power(struct lcd_device *ld, int power)
189189
if (power == dd->power)
190190
return 0;
191191

192-
if (power > FB_BLANK_UNBLANK)
192+
if (power > LCD_POWER_ON)
193193
otm3225a_write(dd->spi, display_off, ARRAY_SIZE(display_off));
194194
else
195195
otm3225a_write(dd->spi, display_on, ARRAY_SIZE(display_on));

0 commit comments

Comments
 (0)