Skip to content

Commit c11de82

Browse files
Thomas Zimmermannlag-linaro
authored andcommitted
fbdev: clps711x-fb: 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 36462ac commit c11de82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/video/fbdev/clps711x-fb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,17 +168,17 @@ static int clps711x_lcd_get_power(struct lcd_device *lcddev)
168168

169169
if (!IS_ERR_OR_NULL(cfb->lcd_pwr))
170170
if (!regulator_is_enabled(cfb->lcd_pwr))
171-
return FB_BLANK_NORMAL;
171+
return LCD_POWER_REDUCED;
172172

173-
return FB_BLANK_UNBLANK;
173+
return LCD_POWER_ON;
174174
}
175175

176176
static int clps711x_lcd_set_power(struct lcd_device *lcddev, int blank)
177177
{
178178
struct clps711x_fb_info *cfb = dev_get_drvdata(&lcddev->dev);
179179

180180
if (!IS_ERR_OR_NULL(cfb->lcd_pwr)) {
181-
if (blank == FB_BLANK_UNBLANK) {
181+
if (blank == LCD_POWER_ON) {
182182
if (!regulator_is_enabled(cfb->lcd_pwr))
183183
return regulator_enable(cfb->lcd_pwr);
184184
} else {

0 commit comments

Comments
 (0)