]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
platform/x86: asus-nb-wmi: Use backlight power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 31 Jul 2024 12:50:53 +0000 (14:50 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 12 Aug 2024 14:27:03 +0000 (16:27 +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: Corentin Chary <corentin.chary@gmail.com>
Cc: "Luke D. Jones" <luke@ljones.dev>
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240731125220.1147348-4-tzimmermann@suse.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/asus-nb-wmi.c

index fceffe2082ec582d6c432d372de5f05cc298e9cc..e20e241bda984987e4f39ed32ed39ed3eba66f96 100644 (file)
@@ -7,12 +7,12 @@
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
+#include <linux/backlight.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/input.h>
 #include <linux/input/sparse-keymap.h>
-#include <linux/fb.h>
 #include <linux/dmi.h>
 #include <linux/i8042.h>
 
@@ -525,7 +525,7 @@ static void asus_nb_wmi_quirks(struct asus_wmi_driver *driver)
        dmi_check_system(asus_quirks);
 
        driver->quirks = quirks;
-       driver->panel_power = FB_BLANK_UNBLANK;
+       driver->panel_power = BACKLIGHT_POWER_ON;
 
        /* overwrite the wapf setting if the wapf paramater is specified */
        if (wapf != -1)