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 488d807 commit 32c913dCopy full SHA for 32c913d
drivers/video/fbdev/imxfb.c
@@ -814,9 +814,9 @@ static int imxfb_lcd_get_power(struct lcd_device *lcddev)
814
815
if (!IS_ERR(fbi->lcd_pwr) &&
816
!regulator_is_enabled(fbi->lcd_pwr))
817
- return FB_BLANK_POWERDOWN;
+ return LCD_POWER_OFF;
818
819
- return FB_BLANK_UNBLANK;
+ return LCD_POWER_ON;
820
}
821
822
static int imxfb_regulator_set(struct imxfb_info *fbi, int enable)
@@ -842,7 +842,7 @@ static int imxfb_lcd_set_power(struct lcd_device *lcddev, int power)
842
struct imxfb_info *fbi = dev_get_drvdata(&lcddev->dev);
843
844
if (!IS_ERR(fbi->lcd_pwr))
845
- return imxfb_regulator_set(fbi, power == FB_BLANK_UNBLANK);
+ return imxfb_regulator_set(fbi, power == LCD_POWER_ON);
846
847
return 0;
848
0 commit comments