Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thomas Zimmermann and committed by
Lee Jones
7629628d 20929e36

+1 -1
+1 -1
drivers/video/backlight/hx8357.c
··· 532 532 return 0; 533 533 } 534 534 535 - #define POWER_IS_ON(pwr) ((pwr) <= FB_BLANK_NORMAL) 535 + #define POWER_IS_ON(pwr) ((pwr) <= LCD_POWER_REDUCED) 536 536 537 537 static int hx8357_set_power(struct lcd_device *lcdev, int power) 538 538 {