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

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Thomas Zimmermann and committed by
Lee Jones
4364900b 7629628d

+3 -4
+3 -4
drivers/video/backlight/ili922x.c
··· 8 8 * memory is cyclically updated over the RGB interface. 9 9 */ 10 10 11 - #include <linux/fb.h> 12 11 #include <linux/delay.h> 13 12 #include <linux/errno.h> 14 13 #include <linux/init.h> ··· 118 119 119 120 #define CMD_BUFSIZE 16 120 121 121 - #define POWER_IS_ON(pwr) ((pwr) <= FB_BLANK_NORMAL) 122 + #define POWER_IS_ON(pwr) ((pwr) <= LCD_POWER_REDUCED) 122 123 123 124 #define set_tx_byte(b) (tx_invert ? ~(b) : b) 124 125 ··· 512 513 513 514 ili922x_display_init(spi); 514 515 515 - ili->power = FB_BLANK_POWERDOWN; 516 + ili->power = LCD_POWER_OFF; 516 517 517 518 lcd = devm_lcd_device_register(&spi->dev, "ili922xlcd", &spi->dev, ili, 518 519 &ili922x_ops); ··· 524 525 ili->ld = lcd; 525 526 spi_set_drvdata(spi, ili); 526 527 527 - ili922x_lcd_power(ili, FB_BLANK_UNBLANK); 528 + ili922x_lcd_power(ili, LCD_POWER_ON); 528 529 529 530 return 0; 530 531 }