]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
macintosh/via-pmu-backlight: Use backlight power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 31 Jul 2024 13:06:15 +0000 (15:06 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 7 Aug 2024 12:48:26 +0000 (22:48 +1000)
Replace FB_BLANK_ constants with their counterparts from the
backlight subsystem. The values are identical, so there's no
change in functionality or semantics.

via-pmu-backlight.c already includes backlight.h where the
BACKLIGHT constants are defined.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240731130720.1148872-3-tzimmermann@suse.de
drivers/macintosh/via-pmu-backlight.c

index 89450645c2305bdae3fc8f1149687634469d0064..26bd9ed5e664552f0f87dbea437b903394d435bf 100644 (file)
@@ -178,7 +178,7 @@ void __init pmu_backlight_init(void)
        }
 
        bd->props.brightness = level;
-       bd->props.power = FB_BLANK_UNBLANK;
+       bd->props.power = BACKLIGHT_POWER_ON;
        backlight_update_status(bd);
 
        printk(KERN_INFO "PMU Backlight initialized (%s)\n", name);