Skip to content

Commit ae909fa

Browse files
committed
platform/x86: oaktrail: Use backlight power constants
JIRA: https://issues.redhat.com/browse/RHEL-120895 commit b780aaf Author: Thomas Zimmermann <tzimmermann@suse.de> Date: Wed Jul 31 14:50:59 2024 +0200 platform/x86: oaktrail: 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 <tzimmermann@suse.de> Cc: Hans de Goede <hdegoede@redhat.com> Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20240731125220.1147348-10-tzimmermann@suse.de Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: David Arcari <darcari@redhat.com>
1 parent df9a09c commit ae909fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/platform/x86/intel/oaktrail.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <linux/backlight.h>
2929
#include <linux/dmi.h>
3030
#include <linux/err.h>
31-
#include <linux/fb.h>
3231
#include <linux/i2c.h>
3332
#include <linux/kernel.h>
3433
#include <linux/module.h>
@@ -250,7 +249,7 @@ static int oaktrail_backlight_init(void)
250249
oaktrail_bl_device = bd;
251250

252251
bd->props.brightness = get_backlight_brightness(bd);
253-
bd->props.power = FB_BLANK_UNBLANK;
252+
bd->props.power = BACKLIGHT_POWER_ON;
254253
backlight_update_status(bd);
255254

256255
return 0;

0 commit comments

Comments
 (0)