From: Thomas Zimmermann Date: Fri, 6 Sep 2024 07:52:19 +0000 (+0200) Subject: backlight: hx8357: Use lcd power constants X-Git-Tag: v6.13-rc1~111^2~28 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7629628d610658f9cc210b9e969f34d07f2c85bd;p=users%2Fgriffoul%2Flinux.git backlight: hx8357: 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 Reviewed-by: Daniel Thompson Link: https://lore.kernel.org/r/20240906075439.98476-6-tzimmermann@suse.de Signed-off-by: Lee Jones --- diff --git a/drivers/video/backlight/hx8357.c b/drivers/video/backlight/hx8357.c index cdd7b7686723..61a57d38700f 100644 --- a/drivers/video/backlight/hx8357.c +++ b/drivers/video/backlight/hx8357.c @@ -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) {