[PATCH 03/30] drm/sun4i: de2: Initialize layer fields earlier

Chen-Yu Tsai wens at csie.org
Sun Oct 19 00:44:03 PDT 2025


On Mon, Oct 13, 2025 at 3:23 AM Jernej Skrabec <jernej.skrabec at gmail.com> wrote:
>
> drm_universal_plane_init() can already call some callbacks, like
> format_mod_supported, during initialization. Because of that, fields
> should be initialized beforehand.

I think fields should always be initialized before any structure is
passed off to another function.

> Signed-off-by: Jernej Skrabec <jernej.skrabec at gmail.com>

Reviewed-by: Chen-Yu Tsai <wens at csie.org>



More information about the linux-arm-kernel mailing list