diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2024-09-06 09:52:19 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-09-30 16:49:41 +0100 |
commit | 7629628d610658f9cc210b9e969f34d07f2c85bd (patch) | |
tree | 72db114c41d37056d3b84064242661111aa21488 | |
parent | 20929e3691599f9cb3e3a0a7b81718c7a5b716b9 (diff) | |
download | lwn-7629628d610658f9cc210b9e969f34d07f2c85bd.tar.gz lwn-7629628d610658f9cc210b9e969f34d07f2c85bd.zip |
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 <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>
-rw-r--r-- | drivers/video/backlight/hx8357.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |