summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorThomas Zimmermann <tzimmermann@suse.de>2024-06-24 17:20:11 +0200
committerLee Jones <lee@kernel.org>2024-07-04 17:45:25 +0200
commit22f8a85ef0c563ba7e53d9ece39c1f2dc99f53ed (patch)
tree70d1912fd12e6b538f39b901d93a3093714b87d8 /drivers/video
parentbacklight: pwm-backlight: Use backlight power constants (diff)
downloadlinux-22f8a85ef0c563ba7e53d9ece39c1f2dc99f53ed.tar.xz
linux-22f8a85ef0c563ba7e53d9ece39c1f2dc99f53ed.zip
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/backlight/rave-sp-backlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/rave-sp-backlight.c b/drivers/video/backlight/rave-sp-backlight.c
index 05b5f003a3d1..e708a060a6e4 100644
--- a/drivers/video/backlight/rave-sp-backlight.c
+++ b/drivers/video/backlight/rave-sp-backlight.c
@@ -19,7 +19,7 @@ static int rave_sp_backlight_update_status(struct backlight_device *bd)
{
const struct backlight_properties *p = &bd->props;
const u8 intensity =
- (p->power == FB_BLANK_UNBLANK) ? p->brightness : 0;
+ (p->power == BACKLIGHT_POWER_ON) ? p->brightness : 0;
struct rave_sp *sp = dev_get_drvdata(&bd->dev);
u8 cmd[] = {
[0] = RAVE_SP_CMD_SET_BACKLIGHT,