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

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

authored by

Thomas Zimmermann and committed by
Lee Jones
3b53bf14 4be0de90

+1 -1
+1 -1
drivers/video/backlight/lms283gf05.c
··· 126 126 struct lms283gf05_state *st = lcd_get_data(ld); 127 127 struct spi_device *spi = st->spi; 128 128 129 - if (power <= FB_BLANK_NORMAL) { 129 + if (power <= LCD_POWER_REDUCED) { 130 130 if (st->reset) 131 131 lms283gf05_reset(st->reset); 132 132 lms283gf05_toggle(spi, disp_initseq, ARRAY_SIZE(disp_initseq));