[Intel-gfx] [PATCH 20/22] drm/panel: Use drm_mode_duplicate()
Sam Ravnborg
sam at ravnborg.org
Fri Feb 18 11:51:07 UTC 2022
Hi Ville,
On Fri, Feb 18, 2022 at 12:04:01PM +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
>
> Replace the hand rolled drm_mode_duplicate() with the
> real thing.
>
> @is_dup@
> @@
> drm_mode_duplicate(...)
> { ... }
>
> @depends on !is_dup@
> expression dev, oldmode;
> identifier newmode;
> @@
> - newmode = drm_mode_create(dev);
> + newmode = drm_mode_duplicate(dev, oldmode);
> ...
> - drm_mode_copy(newmode, oldmode);
>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> Cc: Thierry Reding <thierry.reding at gmail.com>
> Cc: Sam Ravnborg <sam at ravnborg.org>
Looks good,
Acked-by: Sam Ravnborg <sam at ravnborg.org>
More information about the Intel-gfx
mailing list