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

fbdev: omap: 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-25-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Thomas Zimmermann and committed by
Lee Jones
16d6110e 32c913d8

+4 -4
+4 -4
drivers/video/fbdev/omap/lcd_ams_delta.c
··· 32 32 33 33 static int ams_delta_lcd_set_power(struct lcd_device *dev, int power) 34 34 { 35 - if (power == FB_BLANK_UNBLANK) { 35 + if (power == LCD_POWER_ON) { 36 36 if (!(ams_delta_lcd & AMS_DELTA_LCD_POWER)) { 37 37 omap_writeb(ams_delta_lcd & AMS_DELTA_MAX_CONTRAST, 38 38 OMAP_PWL_ENABLE); ··· 63 63 static int ams_delta_lcd_get_power(struct lcd_device *dev) 64 64 { 65 65 if (ams_delta_lcd & AMS_DELTA_LCD_POWER) 66 - return FB_BLANK_UNBLANK; 66 + return LCD_POWER_ON; 67 67 else 68 - return FB_BLANK_POWERDOWN; 68 + return LCD_POWER_OFF; 69 69 } 70 70 71 71 static int ams_delta_lcd_get_contrast(struct lcd_device *dev) ··· 155 155 #endif 156 156 157 157 ams_delta_lcd_set_contrast(lcd_device, AMS_DELTA_DEFAULT_CONTRAST); 158 - ams_delta_lcd_set_power(lcd_device, FB_BLANK_UNBLANK); 158 + ams_delta_lcd_set_power(lcd_device, LCD_POWER_ON); 159 159 160 160 omapfb_register_panel(&ams_delta_panel); 161 161 return 0;