Re: [PATCH v2] drm/panel: visionox-rm69299: Remove redundant assignments of panel fields
From: Dmitry Baryshkov
Date: Thu Dec 05 2024 - 14:37:58 EST
On Wed, Dec 04, 2024 at 05:39:41PM +0800, Chen-Yu Tsai wrote:
> drm_panel_init() was made to initialize the fields in |struct drm_panel|.
> There is no need to separately initialize them again.
>
> Drop the separate assignments that are redundant. Also fix up any uses
> of `ctx->panel.dev` to use `dev` directly.
>
> Signed-off-by: Chen-Yu Tsai <wenst@xxxxxxxxxxxx>
> ---
> Changes since v1:
> - Also fix uses of `ctx->panel.dev`
>
> drivers/gpu/drm/panel/panel-visionox-rm69299.c | 9 ++-------
> 1 file changed, 2 insertions(+), 7 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>
--
With best wishes
Dmitry