Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <tzimmermann@suse.de>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20240906075439.98476-24-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Thomas Zimmermann and committed by
Lee Jones
32c913d8 488d8071

+3 -3
+3 -3
drivers/video/fbdev/imxfb.c
··· 814 814 815 815 if (!IS_ERR(fbi->lcd_pwr) && 816 816 !regulator_is_enabled(fbi->lcd_pwr)) 817 - return FB_BLANK_POWERDOWN; 817 + return LCD_POWER_OFF; 818 818 819 - return FB_BLANK_UNBLANK; 819 + return LCD_POWER_ON; 820 820 } 821 821 822 822 static int imxfb_regulator_set(struct imxfb_info *fbi, int enable) ··· 842 842 struct imxfb_info *fbi = dev_get_drvdata(&lcddev->dev); 843 843 844 844 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); 846 846 847 847 return 0; 848 848 }