Message ID | 20240215085316.56835-9-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-66452-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp259084dyb; Thu, 15 Feb 2024 00:56:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVJ7vtG8vLcCEBDGik+QczQ/mJe6zYWMXptMdCHiCy+O0yI6f7QoJGAvqtyN1HGK8Bp4s4g2ey5sYxbvEaVhTUnI6L30w== X-Google-Smtp-Source: AGHT+IH1IJaNH+nYXmINZ4JWIc9w5KlpziTnJAUJPMWhFcZRywtopcBZHdvv51yoW0yt7eB5px7l X-Received: by 2002:a05:620a:b84:b0:787:3364:921 with SMTP id k4-20020a05620a0b8400b0078733640921mr1298168qkh.67.1707987377726; Thu, 15 Feb 2024 00:56:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707987377; cv=pass; d=google.com; s=arc-20160816; b=kiWjOEIR5b23KOmwcWJz6OB7JzhqgKNmzBnb6wfcXYm5IzADRvB0bAuycC8qiB0O4g h8nK3F6q2O/s0NdxWCPnFbBspwL7vmjpbGtl8sf7vIfUNoLpM0IRllhj69icTdtgpUQr /2Bu8RSBKIQ93CU247AV+tQNnqXH9/pYXsOYGx1WtRnCQfOjvqDh6zD0ENVC4l6uWQ10 eKkdaSkbvKpBOihm8QY+KJDzQefHpeB/fdVapRfBv49anFyHid08+0W+AyIRjhG89+n3 zxSmhUq0QyxH86CdOyFzexhWlQNZEH7J84ItoboNky8y5uGrkBD49ivz7S/2YJfaTpOz Libw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=K98lyh7BYxw8wd4efIBJH+6ll180Bkcx/gbITH3BFf8=; fh=DymtPskoT54dQuQTH3+j1GsMJSYUhAPWziBriE7pXA4=; b=WZLWGkvTiUGzcrOInhyDcMOMWLir4lnnDJhfffHZqw3mQTc5hdOWTr8Jzltz9RBdxB ox9datQhuQ2Kqpdw7JdMpwzaoSbNA2G2yWWOkzFndr9EQBkVo+0y1jLwqwJqHx3qXU2f ZYQodvLkNY3r1G1rruPmJKWP+p3nYOCe1L6fqBfZEETfa165EUNFWK7FDEc6FEYPCWLy vVj9/Qqkr67NvOv4BdqK9lOBY5HASHpn+juYvrOc4z3yuYgbyVhpfcraBaDshmDaxCsI WQi7RP99mwuGgg37jsYuN4QfetvSja/0YoUbzo4ydyqq/KjTOAZ1qGXkSkF9fSeoK1E5 UeZw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WbHtbgpF; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-66452-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66452-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bp37-20020a05620a45a500b007871e945b29si1100974qkb.251.2024.02.15.00.56.17 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 00:56:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66452-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=WbHtbgpF; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-66452-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66452-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 88A631C277DD for <ouuuleilei@gmail.com>; Thu, 15 Feb 2024 08:55:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 296EC1C29B; Thu, 15 Feb 2024 08:53:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="WbHtbgpF" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 190251B95A for <linux-kernel@vger.kernel.org>; Thu, 15 Feb 2024 08:53:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707987212; cv=none; b=e3Redn3oRSgRgA75AxDQowtmm5Lp6F710GRIb8hkBm1hprwt0LnIO9KvBSGV2pPI0eg0BovcW3vMYZuAJxQW9x1K4BEhHQqueCrDTsjONMp/Qp/we0VhvGY01vyRTqPW0oHshvV/eGjWPxgDYm/0/oRj3yZC2t7SSLb2ta4++5c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707987212; c=relaxed/simple; bh=2kYcQ73m5VVQx0p8fzsV+YSRRDCiNyzlRkXbM24wCGE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kL3tP/FDCmQ+jU5sn3iTcZeyTQkfctHpwLYaFIXLDnDwk9/RJ7WrzbQIDHw/mkn0GeqPLSMfXQtNAIiI+8hWk8rIBjnUZUrskhtomEcyCfzePFGaYMd7NoJcluYhUuZgDJlIfvwno4pO2ErhgFNOe0UCylm5TFXLUD69XH9XjZw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=WbHtbgpF; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707987209; bh=2kYcQ73m5VVQx0p8fzsV+YSRRDCiNyzlRkXbM24wCGE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WbHtbgpFJWFjURzyiWBYTuYd1nJqdFtctwVM3Q5+TK6PjXKFZNn3IItKPOxpx2u2D HcxZVuLWZCl+PFx+tGk5X8E0UKa6lHm25sWsDDSjAEX80CM+b0lx70vdIXEicB1hzt CtrA0f6NBDj4oabmDbvSSZzB2wVoBo3VklJjsmcIhYeGPen1kxt9HMn6m8w2azFQ5O +znL/bmTFIc6e+BJ1vOFje1sGKRsk7Wy6VilW1bz+h6l0rfCNOT3sA4PK1GdWoHdfF e7c6GqSONJLguwcmZpHEHAXy0j73hRkQitVpqqLpfDhiYYfc/CuwU/wamNevLpWJ8I edtzAtpR4lfsg== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id B8B4037820B6; Thu, 15 Feb 2024 08:53:28 +0000 (UTC) From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: chunkuang.hu@kernel.org Cc: fshao@chromium.org, p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, Alexandre Mergnat <amergnat@baylibre.com> Subject: [PATCH v6 8/9] drm/mediatek: dsi: Compress of_device_id entries and add sentinel Date: Thu, 15 Feb 2024 09:53:15 +0100 Message-ID: <20240215085316.56835-9-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240215085316.56835-1-angelogioacchino.delregno@collabora.com> References: <20240215085316.56835-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790954572870076774 X-GMAIL-MSGID: 1790954572870076774 |
Series |
MediaTek DRM - DSI driver cleanups
|
|
Commit Message
AngeloGioacchino Del Regno
Feb. 15, 2024, 8:53 a.m. UTC
All entries fit in 82 columns, which is acceptable: compress all of the mtk_dsi_of_match[] entries to a single line for each. While at it, also add the usual sentinel comment to the last entry. Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> --- drivers/gpu/drm/mediatek/mtk_dsi.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-)
Comments
Hi, Angelo: On Thu, 2024-02-15 at 09:53 +0100, AngeloGioacchino Del Regno wrote: > All entries fit in 82 columns, which is acceptable: compress all of > the mtk_dsi_of_match[] entries to a single line for each. > > While at it, also add the usual sentinel comment to the last entry. Reviewed-by: CK Hu <ck.hu@mediatek.com> > > Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com> > Signed-off-by: AngeloGioacchino Del Regno < > angelogioacchino.delregno@collabora.com> > --- > drivers/gpu/drm/mediatek/mtk_dsi.c | 17 ++++++----------- > 1 file changed, 6 insertions(+), 11 deletions(-) > > diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c > b/drivers/gpu/drm/mediatek/mtk_dsi.c > index 195ff4dfc3a3..b644505de98a 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dsi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c > @@ -1204,17 +1204,12 @@ static const struct mtk_dsi_driver_data > mt8188_dsi_driver_data = { > }; > > static const struct of_device_id mtk_dsi_of_match[] = { > - { .compatible = "mediatek,mt2701-dsi", > - .data = &mt2701_dsi_driver_data }, > - { .compatible = "mediatek,mt8173-dsi", > - .data = &mt8173_dsi_driver_data }, > - { .compatible = "mediatek,mt8183-dsi", > - .data = &mt8183_dsi_driver_data }, > - { .compatible = "mediatek,mt8186-dsi", > - .data = &mt8186_dsi_driver_data }, > - { .compatible = "mediatek,mt8188-dsi", > - .data = &mt8188_dsi_driver_data }, > - { }, > + { .compatible = "mediatek,mt2701-dsi", .data = > &mt2701_dsi_driver_data }, > + { .compatible = "mediatek,mt8173-dsi", .data = > &mt8173_dsi_driver_data }, > + { .compatible = "mediatek,mt8183-dsi", .data = > &mt8183_dsi_driver_data }, > + { .compatible = "mediatek,mt8186-dsi", .data = > &mt8186_dsi_driver_data }, > + { .compatible = "mediatek,mt8188-dsi", .data = > &mt8188_dsi_driver_data }, > + { /* sentinel */ } > }; > MODULE_DEVICE_TABLE(of, mtk_dsi_of_match); >
diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 195ff4dfc3a3..b644505de98a 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -1204,17 +1204,12 @@ static const struct mtk_dsi_driver_data mt8188_dsi_driver_data = { }; static const struct of_device_id mtk_dsi_of_match[] = { - { .compatible = "mediatek,mt2701-dsi", - .data = &mt2701_dsi_driver_data }, - { .compatible = "mediatek,mt8173-dsi", - .data = &mt8173_dsi_driver_data }, - { .compatible = "mediatek,mt8183-dsi", - .data = &mt8183_dsi_driver_data }, - { .compatible = "mediatek,mt8186-dsi", - .data = &mt8186_dsi_driver_data }, - { .compatible = "mediatek,mt8188-dsi", - .data = &mt8188_dsi_driver_data }, - { }, + { .compatible = "mediatek,mt2701-dsi", .data = &mt2701_dsi_driver_data }, + { .compatible = "mediatek,mt8173-dsi", .data = &mt8173_dsi_driver_data }, + { .compatible = "mediatek,mt8183-dsi", .data = &mt8183_dsi_driver_data }, + { .compatible = "mediatek,mt8186-dsi", .data = &mt8186_dsi_driver_data }, + { .compatible = "mediatek,mt8188-dsi", .data = &mt8188_dsi_driver_data }, + { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, mtk_dsi_of_match);