[PATCH 9/9] drm/tilcdc: Use backlight power constants
jyri.sarha at iki.fi
jyri.sarha at iki.fi
Fri Aug 2 07:00:23 UTC 2024
July 31, 2024 at 3:17 PM, "Thomas Zimmermann" <tzimmermann at suse.de mailto:tzimmermann at suse.de?to=%22Thomas%20Zimmermann%22%20%3Ctzimmermann%40suse.de%3E > wrote:
>
> 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 at suse.de>
> Cc: Jyri Sarha <jyri.sarha at iki.fi>
> Cc: Tomi Valkeinen <tomi.valkeinen at ideasonboard.com>
> ---
Acked-by: Jyri Sarha <jyri.sarha at iki.fi>
Thank,
Jyri
> drivers/gpu/drm/tilcdc/tilcdc_panel.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/tilcdc/tilcdc_panel.c b/drivers/gpu/drm/tilcdc/tilcdc_panel.c
> index 68093d6b6b16..5f2d1b6f9ee9 100644
> --- a/drivers/gpu/drm/tilcdc/tilcdc_panel.c
> +++ b/drivers/gpu/drm/tilcdc/tilcdc_panel.c
> @@ -49,7 +49,7 @@ static void panel_encoder_dpms(struct drm_encoder *encoder, int mode)
>
> if (backlight) {
> backlight->props.power = mode == DRM_MODE_DPMS_ON ?
> - FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN;
> + BACKLIGHT_POWER_ON : BACKLIGHT_POWER_OFF;
> backlight_update_status(backlight);
> }
>
> --
> 2.45.2
>
More information about the amd-gfx
mailing list