The connector type of a panel is also available as the type of the bridge embedded into it. Use that one, so that drm_panel.connector_type can go away.
Assisted-by: LLM Signed-off-by: Dmitry Baryshkov <[email protected]> --- drivers/gpu/drm/tidss/tidss_kms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tidss/tidss_kms.c b/drivers/gpu/drm/tidss/tidss_kms.c index 70c14c3be10d..b98a48085db1 100644 --- a/drivers/gpu/drm/tidss/tidss_kms.c +++ b/drivers/gpu/drm/tidss/tidss_kms.c @@ -181,11 +181,11 @@ static int tidss_dispc_modeset_init(struct tidss_device *tidss) goto put_panel; } - if (panel->connector_type != conn_type) { + if (panel->bridge.type != conn_type) { dev_err(dev, "%s: Panel %s has incompatible connector type for vp%d (%d != %d)\n", __func__, dev_name(panel->dev), i, - panel->connector_type, conn_type); + panel->bridge.type, conn_type); ret = -EINVAL; goto put_panel; } -- 2.47.3
