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

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

authored by

Thomas Zimmermann and committed by
Lee Jones
d4db2f19 c2d9c493

+1 -2
+1 -2
drivers/video/backlight/pandora_bl.c
··· 11 11 #include <linux/kernel.h> 12 12 #include <linux/platform_device.h> 13 13 #include <linux/delay.h> 14 - #include <linux/fb.h> 15 14 #include <linux/backlight.h> 16 15 #include <linux/mfd/twl.h> 17 16 #include <linux/err.h> ··· 42 43 struct pandora_private *priv = bl_get_data(bl); 43 44 u8 r; 44 45 45 - if (bl->props.power != FB_BLANK_UNBLANK) 46 + if (bl->props.power != BACKLIGHT_POWER_ON) 46 47 brightness = 0; 47 48 if (bl->props.state & BL_CORE_FBBLANK) 48 49 brightness = 0;