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

backlight: kb3886-bl: 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.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240624152033.25016-9-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Thomas Zimmermann and committed by
Lee Jones
cebc2597 6910d19b

+2 -2
+2 -2
drivers/video/backlight/kb3886_bl.c
··· 10 10 #include <linux/module.h> 11 11 #include <linux/kernel.h> 12 12 #include <linux/init.h> 13 + #include <linux/io.h> 13 14 #include <linux/platform_device.h> 14 15 #include <linux/mutex.h> 15 - #include <linux/fb.h> 16 16 #include <linux/backlight.h> 17 17 #include <linux/delay.h> 18 18 #include <linux/dmi.h> ··· 151 151 152 152 platform_set_drvdata(pdev, kb3886_backlight_device); 153 153 154 - kb3886_backlight_device->props.power = FB_BLANK_UNBLANK; 154 + kb3886_backlight_device->props.power = BACKLIGHT_POWER_ON; 155 155 kb3886_backlight_device->props.brightness = machinfo->default_intensity; 156 156 backlight_update_status(kb3886_backlight_device); 157 157