Skip to content

Commit cebc259

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
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 <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent 6910d19 commit cebc259

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/backlight/kb3886_bl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
#include <linux/module.h>
1111
#include <linux/kernel.h>
1212
#include <linux/init.h>
13+
#include <linux/io.h>
1314
#include <linux/platform_device.h>
1415
#include <linux/mutex.h>
15-
#include <linux/fb.h>
1616
#include <linux/backlight.h>
1717
#include <linux/delay.h>
1818
#include <linux/dmi.h>
@@ -151,7 +151,7 @@ static int kb3886bl_probe(struct platform_device *pdev)
151151

152152
platform_set_drvdata(pdev, kb3886_backlight_device);
153153

154-
kb3886_backlight_device->props.power = FB_BLANK_UNBLANK;
154+
kb3886_backlight_device->props.power = BACKLIGHT_POWER_ON;
155155
kb3886_backlight_device->props.brightness = machinfo->default_intensity;
156156
backlight_update_status(kb3886_backlight_device);
157157

0 commit comments

Comments
 (0)