Skip to content

Commit 86c0826

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
backlight: platform_lcd: 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 c38a7db commit 86c0826

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/backlight/platform_lcd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ static int platform_lcd_set_power(struct lcd_device *lcd, int power)
4141
struct platform_lcd *plcd = to_our_lcd(lcd);
4242
int lcd_power = 1;
4343

44-
if (power == FB_BLANK_POWERDOWN || plcd->suspended)
44+
if (power == LCD_POWER_OFF || plcd->suspended)
4545
lcd_power = 0;
4646

4747
plcd->pdata->set_power(plcd->pdata, lcd_power);
@@ -97,7 +97,7 @@ static int platform_lcd_probe(struct platform_device *pdev)
9797
}
9898

9999
platform_set_drvdata(pdev, plcd);
100-
platform_lcd_set_power(plcd->lcd, FB_BLANK_NORMAL);
100+
platform_lcd_set_power(plcd->lcd, LCD_POWER_REDUCED);
101101

102102
return 0;
103103
}

0 commit comments

Comments
 (0)