]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fbdev: chipsfb: Use backlight power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 31 Jul 2024 12:33:45 +0000 (14:33 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 30 Sep 2024 14:35:28 +0000 (16:35 +0200)
Replace FB_BLANK_ constants with their counterparts from the
backlight subsystem. The values are identical, so there's no
change in functionality or semantics

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Helge Deller <deller@gmx.de>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240731123502.1145082-5-tzimmermann@suse.de
drivers/video/fbdev/chipsfb.c

index b16a905588fed444bf9b63eb4bf403257a8f7d78..33caf0b99a452a213be3a26ff007afcefd461851 100644 (file)
@@ -399,7 +399,7 @@ static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent)
        /* turn on the backlight */
        mutex_lock(&pmac_backlight_mutex);
        if (pmac_backlight) {
-               pmac_backlight->props.power = FB_BLANK_UNBLANK;
+               pmac_backlight->props.power = BACKLIGHT_POWER_ON;
                backlight_update_status(pmac_backlight);
        }
        mutex_unlock(&pmac_backlight_mutex);