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

backlight: ktd253-backlight: Use backlight power constants

Replace FB_BLANK_ constants with their counterparts from the
backlight 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/20240624152033.25016-10-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Thomas Zimmermann and committed by
Lee Jones
def5831f cebc2597

+2 -3
+2 -3
drivers/video/backlight/ktd253-backlight.c
··· 7 7 #include <linux/backlight.h> 8 8 #include <linux/delay.h> 9 9 #include <linux/err.h> 10 - #include <linux/fb.h> 11 10 #include <linux/gpio/consumer.h> 12 11 #include <linux/init.h> 13 12 #include <linux/kernel.h> ··· 189 190 /* When we just enable the GPIO line we set max brightness */ 190 191 if (brightness) { 191 192 bl->props.brightness = brightness; 192 - bl->props.power = FB_BLANK_UNBLANK; 193 + bl->props.power = BACKLIGHT_POWER_ON; 193 194 } else { 194 195 bl->props.brightness = 0; 195 - bl->props.power = FB_BLANK_POWERDOWN; 196 + bl->props.power = BACKLIGHT_POWER_OFF; 196 197 } 197 198 198 199 ktd253->bl = bl;