Skip to content

Commit 22f8a85

Browse files
tdzlag-linaro
authored andcommitted
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>
1 parent eb1c4b6 commit 22f8a85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/video/backlight/rave-sp-backlight.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ static int rave_sp_backlight_update_status(struct backlight_device *bd)
1919
{
2020
const struct backlight_properties *p = &bd->props;
2121
const u8 intensity =
22-
(p->power == FB_BLANK_UNBLANK) ? p->brightness : 0;
22+
(p->power == BACKLIGHT_POWER_ON) ? p->brightness : 0;
2323
struct rave_sp *sp = dev_get_drvdata(&bd->dev);
2424
u8 cmd[] = {
2525
[0] = RAVE_SP_CMD_SET_BACKLIGHT,

0 commit comments

Comments
 (0)