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

backlight: pcf50633-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-15-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Thomas Zimmermann and committed by
Lee Jones
eca6b3dd d4db2f19

+2 -3
+2 -3
drivers/video/backlight/pcf50633-backlight.c
··· 10 10 #include <linux/platform_device.h> 11 11 12 12 #include <linux/backlight.h> 13 - #include <linux/fb.h> 14 13 15 14 #include <linux/mfd/pcf50633/core.h> 16 15 #include <linux/mfd/pcf50633/backlight.h> ··· 52 53 53 54 54 55 if (bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK) || 55 - bl->props.power != FB_BLANK_UNBLANK) 56 + bl->props.power != BACKLIGHT_POWER_ON) 56 57 new_brightness = 0; 57 58 else if (bl->props.brightness < pcf_bl->brightness_limit) 58 59 new_brightness = bl->props.brightness; ··· 105 106 memset(&bl_props, 0, sizeof(bl_props)); 106 107 bl_props.type = BACKLIGHT_RAW; 107 108 bl_props.max_brightness = 0x3f; 108 - bl_props.power = FB_BLANK_UNBLANK; 109 + bl_props.power = BACKLIGHT_POWER_ON; 109 110 110 111 if (pdata) { 111 112 bl_props.brightness = pdata->default_brightness;