diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2024-07-31 15:06:15 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-08-07 22:48:26 +1000 |
commit | c7907a47bb68a18758edf12fd45e201ff03e2acc (patch) | |
tree | 4add31831453fe0da465ad60f41b9a1721c3e459 | |
parent | 28455894bb99a1afe541cb7c987cc7e193c41fc6 (diff) | |
download | linux-c7907a47bb68a18758edf12fd45e201ff03e2acc.tar.gz linux-c7907a47bb68a18758edf12fd45e201ff03e2acc.tar.bz2 linux-c7907a47bb68a18758edf12fd45e201ff03e2acc.zip |
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
-rw-r--r-- | drivers/macintosh/via-pmu-backlight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/via-pmu-backlight.c b/drivers/macintosh/via-pmu-backlight.c index 89450645c230..26bd9ed5e664 100644 --- a/drivers/macintosh/via-pmu-backlight.c +++ b/drivers/macintosh/via-pmu-backlight.c @@ -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); |