fbdev: omap: Use lcd power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 6 Sep 2024 07:52:38 +0000 (09:52 +0200)
committerLee Jones <lee@kernel.org>
Mon, 30 Sep 2024 15:49:42 +0000 (16:49 +0100)
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 <tzimmermann@suse.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240906075439.98476-25-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/fbdev/omap/lcd_ams_delta.c

index 97e2b71..456e6e9 100644 (file)
@@ -32,7 +32,7 @@ static struct gpio_desc *gpiod_ndisp;
 
 static int ams_delta_lcd_set_power(struct lcd_device *dev, int power)
 {
-       if (power == FB_BLANK_UNBLANK) {
+       if (power == LCD_POWER_ON) {
                if (!(ams_delta_lcd & AMS_DELTA_LCD_POWER)) {
                        omap_writeb(ams_delta_lcd & AMS_DELTA_MAX_CONTRAST,
                                        OMAP_PWL_ENABLE);
@@ -63,9 +63,9 @@ static int ams_delta_lcd_set_contrast(struct lcd_device *dev, int value)
 static int ams_delta_lcd_get_power(struct lcd_device *dev)
 {
        if (ams_delta_lcd & AMS_DELTA_LCD_POWER)
-               return FB_BLANK_UNBLANK;
+               return LCD_POWER_ON;
        else
-               return FB_BLANK_POWERDOWN;
+               return LCD_POWER_OFF;
 }
 
 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)
 #endif
 
        ams_delta_lcd_set_contrast(lcd_device, AMS_DELTA_DEFAULT_CONTRAST);
-       ams_delta_lcd_set_power(lcd_device, FB_BLANK_UNBLANK);
+       ams_delta_lcd_set_power(lcd_device, LCD_POWER_ON);
 
        omapfb_register_panel(&ams_delta_panel);
        return 0;