Skip to content

Commit 32c913d

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
fbdev: imxfb: Use lcd power constants
Replace FB_BLANK_ constants with their counterparts from the lcd 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 488d807 commit 32c913d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/video/fbdev/imxfb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -814,9 +814,9 @@ static int imxfb_lcd_get_power(struct lcd_device *lcddev)
814814

815815
if (!IS_ERR(fbi->lcd_pwr) &&
816816
!regulator_is_enabled(fbi->lcd_pwr))
817-
return FB_BLANK_POWERDOWN;
817+
return LCD_POWER_OFF;
818818

819-
return FB_BLANK_UNBLANK;
819+
return LCD_POWER_ON;
820820
}
821821

822822
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)
842842
struct imxfb_info *fbi = dev_get_drvdata(&lcddev->dev);
843843

844844
if (!IS_ERR(fbi->lcd_pwr))
845-
return imxfb_regulator_set(fbi, power == FB_BLANK_UNBLANK);
845+
return imxfb_regulator_set(fbi, power == LCD_POWER_ON);
846846

847847
return 0;
848848
}

0 commit comments

Comments
 (0)