]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
backlight: hx8357: Use lcd power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 6 Sep 2024 07:52:19 +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-6-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/hx8357.c

index cdd7b76867235cfc89bdcc115fe9c34005b56e13..61a57d38700fe610d4ff629bc9b155010e8a6961 100644 (file)
@@ -532,7 +532,7 @@ static int hx8369_lcd_init(struct lcd_device *lcdev)
        return 0;
 }
 
-#define POWER_IS_ON(pwr)       ((pwr) <= FB_BLANK_NORMAL)
+#define POWER_IS_ON(pwr)       ((pwr) <= LCD_POWER_REDUCED)
 
 static int hx8357_set_power(struct lcd_device *lcdev, int power)
 {