Commit 22f8a85e authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Lee Jones

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: default avatarThomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240624152033.25016-17-tzimmermann@suse.deSigned-off-by: default avatarLee Jones <lee@kernel.org>
parent eb1c4b6d
...@@ -19,7 +19,7 @@ static int rave_sp_backlight_update_status(struct backlight_device *bd) ...@@ -19,7 +19,7 @@ static int rave_sp_backlight_update_status(struct backlight_device *bd)
{ {
const struct backlight_properties *p = &bd->props; const struct backlight_properties *p = &bd->props;
const u8 intensity = 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); struct rave_sp *sp = dev_get_drvdata(&bd->dev);
u8 cmd[] = { u8 cmd[] = {
[0] = RAVE_SP_CMD_SET_BACKLIGHT, [0] = RAVE_SP_CMD_SET_BACKLIGHT,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment