From: Thomas Zimmermann Date: Wed, 31 Jul 2024 12:50:51 +0000 (+0200) Subject: platform/x86: acer-wmi: Use backlight power constants X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=754d389cdde9215f751ed4f35f1b1e5b765563cd;p=users%2Fjedix%2Flinux-maple.git platform/x86: acer-wmi: 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. Signed-off-by: Thomas Zimmermann Cc: "Lee, Chun-Yi" Cc: Hans de Goede Cc: "Ilpo Järvinen" Link: https://lore.kernel.org/r/20240731125220.1147348-2-tzimmermann@suse.de Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede --- diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 38c932df6446a..349169d050c51 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -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;