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

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

authored by

Thomas Zimmermann and committed by
Lee Jones
7c14e7a3 a42a215d

+1 -1
+1 -1
drivers/video/backlight/otm3225a.c
··· 189 189 if (power == dd->power) 190 190 return 0; 191 191 192 - if (power > FB_BLANK_UNBLANK) 192 + if (power > LCD_POWER_ON) 193 193 otm3225a_write(dd->spi, display_off, ARRAY_SIZE(display_off)); 194 194 else 195 195 otm3225a_write(dd->spi, display_on, ARRAY_SIZE(display_on));