Skip to content

Commit 992f5c4

Browse files
tdzlag-linaro
authored andcommitted
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 <[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 a412a18 commit 992f5c4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

drivers/video/backlight/jornada720_lcd.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77

88
#include <linux/device.h>
9-
#include <linux/fb.h>
109
#include <linux/io.h>
1110
#include <linux/kernel.h>
1211
#include <linux/lcd.h>
@@ -24,14 +23,14 @@
2423

2524
static int jornada_lcd_get_power(struct lcd_device *ld)
2625
{
27-
return PPSR & PPC_LDD2 ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN;
26+
return PPSR & PPC_LDD2 ? LCD_POWER_ON : LCD_POWER_OFF;
2827
}
2928

3029
static int jornada_lcd_get_contrast(struct lcd_device *ld)
3130
{
3231
int ret;
3332

34-
if (jornada_lcd_get_power(ld) != FB_BLANK_UNBLANK)
33+
if (jornada_lcd_get_power(ld) != LCD_POWER_ON)
3534
return 0;
3635

3736
jornada_ssp_start();
@@ -72,7 +71,7 @@ static int jornada_lcd_set_contrast(struct lcd_device *ld, int value)
7271

7372
static int jornada_lcd_set_power(struct lcd_device *ld, int power)
7473
{
75-
if (power != FB_BLANK_UNBLANK) {
74+
if (power != LCD_POWER_ON) {
7675
PPSR &= ~PPC_LDD2;
7776
PPDR |= PPC_LDD2;
7877
} else {
@@ -107,7 +106,7 @@ static int jornada_lcd_probe(struct platform_device *pdev)
107106

108107
/* lets set our default values */
109108
jornada_lcd_set_contrast(lcd_device, LCD_DEF_CONTRAST);
110-
jornada_lcd_set_power(lcd_device, FB_BLANK_UNBLANK);
109+
jornada_lcd_set_power(lcd_device, LCD_POWER_ON);
111110
/* give it some time to startup */
112111
msleep(100);
113112

0 commit comments

Comments
 (0)