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

fbdev: atmel_lcdfb: Use backlight power constants

Replace FB_BLANK_ constants with their counterparts from the
backlight subsystem. The values are identical, so there's no
change in functionality or semantics.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Nicolas Ferre <nicolas.ferre@microchip.com>
Cc: Helge Deller <deller@gmx.de>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Cc: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240731123502.1145082-2-tzimmermann@suse.de

+2 -2
+2 -2
drivers/video/fbdev/atmel_lcdfb.c
··· 152 152 } 153 153 sinfo->backlight = bl; 154 154 155 - bl->props.power = FB_BLANK_UNBLANK; 155 + bl->props.power = BACKLIGHT_POWER_ON; 156 156 bl->props.brightness = atmel_bl_get_brightness(bl); 157 157 } 158 158 ··· 162 162 return; 163 163 164 164 if (sinfo->backlight->ops) { 165 - sinfo->backlight->props.power = FB_BLANK_POWERDOWN; 165 + sinfo->backlight->props.power = BACKLIGHT_POWER_OFF; 166 166 sinfo->backlight->ops->update_status(sinfo->backlight); 167 167 } 168 168 backlight_device_unregister(sinfo->backlight);