We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cebc259 commit def5831Copy full SHA for def5831
drivers/video/backlight/ktd253-backlight.c
@@ -7,7 +7,6 @@
7
#include <linux/backlight.h>
8
#include <linux/delay.h>
9
#include <linux/err.h>
10
-#include <linux/fb.h>
11
#include <linux/gpio/consumer.h>
12
#include <linux/init.h>
13
#include <linux/kernel.h>
@@ -190,10 +189,10 @@ static int ktd253_backlight_probe(struct platform_device *pdev)
190
189
/* When we just enable the GPIO line we set max brightness */
191
if (brightness) {
192
bl->props.brightness = brightness;
193
- bl->props.power = FB_BLANK_UNBLANK;
+ bl->props.power = BACKLIGHT_POWER_ON;
194
} else {
195
bl->props.brightness = 0;
196
- bl->props.power = FB_BLANK_POWERDOWN;
+ bl->props.power = BACKLIGHT_POWER_OFF;
197
}
198
199
ktd253->bl = bl;
0 commit comments