]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
backlight: rave-sp-backlight: Use backlight power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 24 Jun 2024 15:20:11 +0000 (17:20 +0200)
committerLee Jones <lee@kernel.org>
Thu, 4 Jul 2024 15:45:25 +0000 (16:45 +0100)
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>
drivers/video/backlight/rave-sp-backlight.c

index 05b5f003a3d1ab152118b427233b73af142e931c..e708a060a6e46fd77083e75ecece4c47321bb79d 100644 (file)
@@ -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,