platform/x86: asus-laptop: Use backlight power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 31 Jul 2024 12:50:52 +0000 (14:50 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 12 Aug 2024 14:26:59 +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: 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-3-tzimmermann@suse.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/asus-laptop.c

index ccb33d034e2ade9cb6ff2cd35c96eea628bffcca..9d7e6b712abf11655e997f84770679427de87837 100644 (file)
@@ -28,7 +28,6 @@
 #include <linux/err.h>
 #include <linux/proc_fs.h>
 #include <linux/backlight.h>
-#include <linux/fb.h>
 #include <linux/leds.h>
 #include <linux/platform_device.h>
 #include <linux/uaccess.h>
@@ -818,7 +817,7 @@ static int asus_backlight_init(struct asus_laptop *asus)
 
        asus->backlight_device = bd;
        bd->props.brightness = asus_read_brightness(bd);
-       bd->props.power = FB_BLANK_UNBLANK;
+       bd->props.power = BACKLIGHT_POWER_ON;
        backlight_update_status(bd);
        return 0;
 }