mirror of
https://github.com/torvalds/linux.git
synced 2024-10-23 05:30:55 +00:00
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>
This commit is contained in:
parent
6910d19bb8
commit
cebc25971f
|
@ -10,9 +10,9 @@
|
|||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/fb.h>
|
||||
#include <linux/backlight.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/dmi.h>
|
||||
|
@ -151,7 +151,7 @@ static int kb3886bl_probe(struct platform_device *pdev)
|
|||
|
||||
platform_set_drvdata(pdev, kb3886_backlight_device);
|
||||
|
||||
kb3886_backlight_device->props.power = FB_BLANK_UNBLANK;
|
||||
kb3886_backlight_device->props.power = BACKLIGHT_POWER_ON;
|
||||
kb3886_backlight_device->props.brightness = machinfo->default_intensity;
|
||||
backlight_update_status(kb3886_backlight_device);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user