Re: [PATCH 06/11] drm/tests: helpers: Create an helper to allocate an atomic state

From: Javier Martinez Canillas
Date: Wed Jul 19 2023 - 16:02:29 EST


Maxime Ripard <mripard@xxxxxxxxxx> writes:

> As we gain more tests, boilerplate to allocate an atomic state and free
> it starts to be there more and more as well.
>
> In order to reduce the allocation boilerplate, we can create an helper
> to create that atomic state, and call an action when the test is done.
> This will also clean up the exit path.
>
> Signed-off-by: Maxime Ripard <mripard@xxxxxxxxxx>
> ---

Reviewed-by: Javier Martinez Canillas <javierm@xxxxxxxxxx>

--
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat