]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
platform/x86: acer-wmi: Use backlight power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 31 Jul 2024 12:50:51 +0000 (14:50 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 12 Aug 2024 14:26:32 +0000 (16:26 +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: "Lee, Chun-Yi" <jlee@suse.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240731125220.1147348-2-tzimmermann@suse.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/acer-wmi.c

index 38c932df6446ac5714d225ac0545ff16345a6e27..349169d050c51749a442785ee4643476d522d75b 100644 (file)
@@ -16,7 +16,6 @@
 #include <linux/init.h>
 #include <linux/types.h>
 #include <linux/dmi.h>
-#include <linux/fb.h>
 #include <linux/backlight.h>
 #include <linux/leds.h>
 #include <linux/platform_device.h>
@@ -1685,7 +1684,7 @@ static int acer_backlight_init(struct device *dev)
 
        acer_backlight_device = bd;
 
-       bd->props.power = FB_BLANK_UNBLANK;
+       bd->props.power = BACKLIGHT_POWER_ON;
        bd->props.brightness = read_brightness(bd);
        backlight_update_status(bd);
        return 0;