]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/panel: visionox-rm69299: Remove redundant assignments of panel fields
authorChen-Yu Tsai <wenst@chromium.org>
Wed, 4 Dec 2024 09:39:41 +0000 (17:39 +0800)
committerChen-Yu Tsai <wenst@chromium.org>
Fri, 6 Dec 2024 07:18:40 +0000 (15:18 +0800)
commit76ba5467ecfd17f63da954c946ec98aa3cbde2d3
treea1e34c3222e57911e5821f2e6e9239d4d45335b6
parent84e541b1e58e04d808e1bb13ef566ffbe87aa89b
drm/panel: visionox-rm69299: Remove redundant assignments of panel fields

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.

Reviewed-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241204093942.1374693-1-wenst@chromium.org
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
drivers/gpu/drm/panel/panel-visionox-rm69299.c