Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Thomas Zimmermann and committed by
Hans de Goede
b780aaff f6619520

+1 -2
+1 -2
drivers/platform/x86/intel/oaktrail.c
··· 28 28 #include <linux/backlight.h> 29 29 #include <linux/dmi.h> 30 30 #include <linux/err.h> 31 - #include <linux/fb.h> 32 31 #include <linux/i2c.h> 33 32 #include <linux/kernel.h> 34 33 #include <linux/module.h> ··· 249 250 oaktrail_bl_device = bd; 250 251 251 252 bd->props.brightness = get_backlight_brightness(bd); 252 - bd->props.power = FB_BLANK_UNBLANK; 253 + bd->props.power = BACKLIGHT_POWER_ON; 253 254 backlight_update_status(bd); 254 255 255 256 return 0;