]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
backlight: ili922x: Use lcd power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 6 Sep 2024 07:52:20 +0000 (09:52 +0200)
committerLee Jones <lee@kernel.org>
Mon, 30 Sep 2024 15:49:41 +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-7-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/ili922x.c

index 7683e209ad6bcad8b20edaa4b15e9ba1b2197dd8..5e1bf0c5831ff8524150945965128b8e5a986a7c 100644 (file)
@@ -8,7 +8,6 @@
  * memory is cyclically updated over the RGB interface.
  */
 
-#include <linux/fb.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/init.h>
 
 #define CMD_BUFSIZE            16
 
-#define POWER_IS_ON(pwr)       ((pwr) <= FB_BLANK_NORMAL)
+#define POWER_IS_ON(pwr)       ((pwr) <= LCD_POWER_REDUCED)
 
 #define set_tx_byte(b)         (tx_invert ? ~(b) : b)
 
@@ -513,7 +512,7 @@ static int ili922x_probe(struct spi_device *spi)
 
        ili922x_display_init(spi);
 
-       ili->power = FB_BLANK_POWERDOWN;
+       ili->power = LCD_POWER_OFF;
 
        lcd = devm_lcd_device_register(&spi->dev, "ili922xlcd", &spi->dev, ili,
                                        &ili922x_ops);
@@ -525,7 +524,7 @@ static int ili922x_probe(struct spi_device *spi)
        ili->ld = lcd;
        spi_set_drvdata(spi, ili);
 
-       ili922x_lcd_power(ili, FB_BLANK_UNBLANK);
+       ili922x_lcd_power(ili, LCD_POWER_ON);
 
        return 0;
 }