Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

macintosh/via-pmu-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 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

authored by

Thomas Zimmermann and committed by
Michael Ellerman
c7907a47 28455894

+1 -1
+1 -1
drivers/macintosh/via-pmu-backlight.c
··· 178 178 } 179 179 180 180 bd->props.brightness = level; 181 - bd->props.power = FB_BLANK_UNBLANK; 181 + bd->props.power = BACKLIGHT_POWER_ON; 182 182 backlight_update_status(bd); 183 183 184 184 printk(KERN_INFO "PMU Backlight initialized (%s)\n", name);