mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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 <tzimmermann@suse.de> Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org> Link: https://lore.kernel.org/r/20240906075439.98476-22-tzimmermann@suse.de Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
36462ac193
commit
c11de82078
1 changed files with 3 additions and 3 deletions
|
@ -168,9 +168,9 @@ static int clps711x_lcd_get_power(struct lcd_device *lcddev)
|
|||
|
||||
if (!IS_ERR_OR_NULL(cfb->lcd_pwr))
|
||||
if (!regulator_is_enabled(cfb->lcd_pwr))
|
||||
return FB_BLANK_NORMAL;
|
||||
return LCD_POWER_REDUCED;
|
||||
|
||||
return FB_BLANK_UNBLANK;
|
||||
return LCD_POWER_ON;
|
||||
}
|
||||
|
||||
static int clps711x_lcd_set_power(struct lcd_device *lcddev, int blank)
|
||||
|
@ -178,7 +178,7 @@ static int clps711x_lcd_set_power(struct lcd_device *lcddev, int blank)
|
|||
struct clps711x_fb_info *cfb = dev_get_drvdata(&lcddev->dev);
|
||||
|
||||
if (!IS_ERR_OR_NULL(cfb->lcd_pwr)) {
|
||||
if (blank == FB_BLANK_UNBLANK) {
|
||||
if (blank == LCD_POWER_ON) {
|
||||
if (!regulator_is_enabled(cfb->lcd_pwr))
|
||||
return regulator_enable(cfb->lcd_pwr);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue