Skip to content

Commit 22f8a85

Browse files
Thomas Zimmermannlag-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 <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent eb1c4b6 commit 22f8a85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)