Skip to content

Commit 7629628

Browse files
tdzlag-linaro
authored andcommitted
backlight: hx8357: 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 20929e3 commit 7629628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/video/backlight/hx8357.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ static int hx8369_lcd_init(struct lcd_device *lcdev)
532532
return 0;
533533
}
534534

535-
#define POWER_IS_ON(pwr) ((pwr) <= FB_BLANK_NORMAL)
535+
#define POWER_IS_ON(pwr) ((pwr) <= LCD_POWER_REDUCED)
536536

537537
static int hx8357_set_power(struct lcd_device *lcdev, int power)
538538
{

0 commit comments

Comments
 (0)