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

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

authored by

Thomas Zimmermann and committed by
Lee Jones
22f8a85e eb1c4b6d

+1 -1
+1 -1
drivers/video/backlight/rave-sp-backlight.c
··· 19 19 { 20 20 const struct backlight_properties *p = &bd->props; 21 21 const u8 intensity = 22 - (p->power == FB_BLANK_UNBLANK) ? p->brightness : 0; 22 + (p->power == BACKLIGHT_POWER_ON) ? p->brightness : 0; 23 23 struct rave_sp *sp = dev_get_drvdata(&bd->dev); 24 24 u8 cmd[] = { 25 25 [0] = RAVE_SP_CMD_SET_BACKLIGHT,