mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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>
This commit is contained in:
committed by
Lee Jones
parent
a42a215d4d
commit
7c14e7a3fd
@@ -189,7 +189,7 @@ static int otm3225a_set_power(struct lcd_device *ld, int power)
|
||||
if (power == dd->power)
|
||||
return 0;
|
||||
|
||||
if (power > FB_BLANK_UNBLANK)
|
||||
if (power > LCD_POWER_ON)
|
||||
otm3225a_write(dd->spi, display_off, ARRAY_SIZE(display_off));
|
||||
else
|
||||
otm3225a_write(dd->spi, display_on, ARRAY_SIZE(display_on));
|
||||
|
||||
Reference in New Issue
Block a user