]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
staging: olpc_dcon: Use backlight power constants
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 31 Jul 2024 12:58:52 +0000 (14:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Aug 2024 09:26:13 +0000 (11: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: Jens Frederich <jfrederich@gmail.com>
Cc: Jon Nettleton <jon.nettleton@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240731130130.1148153-3-tzimmermann@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/olpc_dcon/olpc_dcon.c

index 08ec3aae90eac254bab104b37404712bef39e181..4cb904a5f8f40258a2f03b39109366c5ebf50298 100644 (file)
@@ -544,7 +544,7 @@ static const struct backlight_ops dcon_bl_ops = {
 static struct backlight_properties dcon_bl_props = {
        .max_brightness = 15,
        .type = BACKLIGHT_RAW,
-       .power = FB_BLANK_UNBLANK,
+       .power = BACKLIGHT_POWER_ON,
 };
 
 static int dcon_reboot_notify(struct notifier_block *nb,