mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 06:01:53 +02:00
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
This commit is contained in:
parent
2dd0ef5d95
commit
852836bc70
|
|
@ -152,7 +152,7 @@ static void init_backlight(struct atmel_lcdfb_info *sinfo)
|
|||
}
|
||||
sinfo->backlight = bl;
|
||||
|
||||
bl->props.power = FB_BLANK_UNBLANK;
|
||||
bl->props.power = BACKLIGHT_POWER_ON;
|
||||
bl->props.brightness = atmel_bl_get_brightness(bl);
|
||||
}
|
||||
|
||||
|
|
@ -162,7 +162,7 @@ static void exit_backlight(struct atmel_lcdfb_info *sinfo)
|
|||
return;
|
||||
|
||||
if (sinfo->backlight->ops) {
|
||||
sinfo->backlight->props.power = FB_BLANK_POWERDOWN;
|
||||
sinfo->backlight->props.power = BACKLIGHT_POWER_OFF;
|
||||
sinfo->backlight->ops->update_status(sinfo->backlight);
|
||||
}
|
||||
backlight_device_unregister(sinfo->backlight);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user