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 36462ac commit c11de82Copy full SHA for c11de82
drivers/video/fbdev/clps711x-fb.c
@@ -168,17 +168,17 @@ static int clps711x_lcd_get_power(struct lcd_device *lcddev)
168
169
if (!IS_ERR_OR_NULL(cfb->lcd_pwr))
170
if (!regulator_is_enabled(cfb->lcd_pwr))
171
- return FB_BLANK_NORMAL;
+ return LCD_POWER_REDUCED;
172
173
- return FB_BLANK_UNBLANK;
+ return LCD_POWER_ON;
174
}
175
176
static int clps711x_lcd_set_power(struct lcd_device *lcddev, int blank)
177
{
178
struct clps711x_fb_info *cfb = dev_get_drvdata(&lcddev->dev);
179
180
if (!IS_ERR_OR_NULL(cfb->lcd_pwr)) {
181
- if (blank == FB_BLANK_UNBLANK) {
+ if (blank == LCD_POWER_ON) {
182
183
return regulator_enable(cfb->lcd_pwr);
184
} else {
0 commit comments