Skip to content

Commit def5831

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
backlight: ktd253-backlight: 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 cebc259 commit def5831

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/video/backlight/ktd253-backlight.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <linux/backlight.h>
88
#include <linux/delay.h>
99
#include <linux/err.h>
10-
#include <linux/fb.h>
1110
#include <linux/gpio/consumer.h>
1211
#include <linux/init.h>
1312
#include <linux/kernel.h>
@@ -190,10 +189,10 @@ static int ktd253_backlight_probe(struct platform_device *pdev)
190189
/* When we just enable the GPIO line we set max brightness */
191190
if (brightness) {
192191
bl->props.brightness = brightness;
193-
bl->props.power = FB_BLANK_UNBLANK;
192+
bl->props.power = BACKLIGHT_POWER_ON;
194193
} else {
195194
bl->props.brightness = 0;
196-
bl->props.power = FB_BLANK_POWERDOWN;
195+
bl->props.power = BACKLIGHT_POWER_OFF;
197196
}
198197

199198
ktd253->bl = bl;

0 commit comments

Comments
 (0)