Skip to content

Commit 4364900

Browse files
tdzlag-linaro
authored andcommitted
backlight: ili922x: 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 7629628 commit 4364900

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/video/backlight/ili922x.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* memory is cyclically updated over the RGB interface.
99
*/
1010

11-
#include <linux/fb.h>
1211
#include <linux/delay.h>
1312
#include <linux/errno.h>
1413
#include <linux/init.h>
@@ -119,7 +118,7 @@
119118

120119
#define CMD_BUFSIZE 16
121120

122-
#define POWER_IS_ON(pwr) ((pwr) <= FB_BLANK_NORMAL)
121+
#define POWER_IS_ON(pwr) ((pwr) <= LCD_POWER_REDUCED)
123122

124123
#define set_tx_byte(b) (tx_invert ? ~(b) : b)
125124

@@ -513,7 +512,7 @@ static int ili922x_probe(struct spi_device *spi)
513512

514513
ili922x_display_init(spi);
515514

516-
ili->power = FB_BLANK_POWERDOWN;
515+
ili->power = LCD_POWER_OFF;
517516

518517
lcd = devm_lcd_device_register(&spi->dev, "ili922xlcd", &spi->dev, ili,
519518
&ili922x_ops);
@@ -525,7 +524,7 @@ static int ili922x_probe(struct spi_device *spi)
525524
ili->ld = lcd;
526525
spi_set_drvdata(spi, ili);
527526

528-
ili922x_lcd_power(ili, FB_BLANK_UNBLANK);
527+
ili922x_lcd_power(ili, LCD_POWER_ON);
529528

530529
return 0;
531530
}

0 commit comments

Comments
 (0)