Skip to content

Commit 16d6110

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
fbdev: omap: 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 32c913d commit 16d6110

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/video/fbdev/omap/lcd_ams_delta.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static struct gpio_desc *gpiod_ndisp;
3232

3333
static int ams_delta_lcd_set_power(struct lcd_device *dev, int power)
3434
{
35-
if (power == FB_BLANK_UNBLANK) {
35+
if (power == LCD_POWER_ON) {
3636
if (!(ams_delta_lcd & AMS_DELTA_LCD_POWER)) {
3737
omap_writeb(ams_delta_lcd & AMS_DELTA_MAX_CONTRAST,
3838
OMAP_PWL_ENABLE);
@@ -63,9 +63,9 @@ static int ams_delta_lcd_set_contrast(struct lcd_device *dev, int value)
6363
static int ams_delta_lcd_get_power(struct lcd_device *dev)
6464
{
6565
if (ams_delta_lcd & AMS_DELTA_LCD_POWER)
66-
return FB_BLANK_UNBLANK;
66+
return LCD_POWER_ON;
6767
else
68-
return FB_BLANK_POWERDOWN;
68+
return LCD_POWER_OFF;
6969
}
7070

7171
static int ams_delta_lcd_get_contrast(struct lcd_device *dev)
@@ -155,7 +155,7 @@ static int ams_delta_panel_probe(struct platform_device *pdev)
155155
#endif
156156

157157
ams_delta_lcd_set_contrast(lcd_device, AMS_DELTA_DEFAULT_CONTRAST);
158-
ams_delta_lcd_set_power(lcd_device, FB_BLANK_UNBLANK);
158+
ams_delta_lcd_set_power(lcd_device, LCD_POWER_ON);
159159

160160
omapfb_register_panel(&ams_delta_panel);
161161
return 0;

0 commit comments

Comments
 (0)