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

backlight: jornada720_lcd: 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-10-tzimmermann@suse.de
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Thomas Zimmermann and committed by
Lee Jones
992f5c43 a412a187

+4 -5
+4 -5
drivers/video/backlight/jornada720_lcd.c
··· 6 6 */ 7 7 8 8 #include <linux/device.h> 9 - #include <linux/fb.h> 10 9 #include <linux/io.h> 11 10 #include <linux/kernel.h> 12 11 #include <linux/lcd.h> ··· 23 24 24 25 static int jornada_lcd_get_power(struct lcd_device *ld) 25 26 { 26 - return PPSR & PPC_LDD2 ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN; 27 + return PPSR & PPC_LDD2 ? LCD_POWER_ON : LCD_POWER_OFF; 27 28 } 28 29 29 30 static int jornada_lcd_get_contrast(struct lcd_device *ld) 30 31 { 31 32 int ret; 32 33 33 - if (jornada_lcd_get_power(ld) != FB_BLANK_UNBLANK) 34 + if (jornada_lcd_get_power(ld) != LCD_POWER_ON) 34 35 return 0; 35 36 36 37 jornada_ssp_start(); ··· 71 72 72 73 static int jornada_lcd_set_power(struct lcd_device *ld, int power) 73 74 { 74 - if (power != FB_BLANK_UNBLANK) { 75 + if (power != LCD_POWER_ON) { 75 76 PPSR &= ~PPC_LDD2; 76 77 PPDR |= PPC_LDD2; 77 78 } else { ··· 106 107 107 108 /* lets set our default values */ 108 109 jornada_lcd_set_contrast(lcd_device, LCD_DEF_CONTRAST); 109 - jornada_lcd_set_power(lcd_device, FB_BLANK_UNBLANK); 110 + jornada_lcd_set_power(lcd_device, LCD_POWER_ON); 110 111 /* give it some time to startup */ 111 112 msleep(100); 112 113