From nobody Thu Nov 14 06:58:32 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7CFFEC6379F for ; Wed, 22 Feb 2023 09:47:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232259AbjBVJrU (ORCPT ); Wed, 22 Feb 2023 04:47:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230291AbjBVJq6 (ORCPT ); Wed, 22 Feb 2023 04:46:58 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F305B38678 for ; Wed, 22 Feb 2023 01:45:01 -0800 (PST) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (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 madras.collabora.co.uk (Postfix) with ESMTPSA id B047766021C8; Wed, 22 Feb 2023 09:43:02 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677058983; bh=spGpqKbSxXn7OPXf28QXu2nWmpVE56wv353pvm/OWK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KiQGObEP5jZxRUVhDOL6ay7oS1WI1Kiipid2I0XbAIUpfOi/IggijilljCw/MzTpN xeML0gjTJUeebPP5T7/jMXmWJutlyVE+AKql56wtHX1INL8H/ytEqE4R6tF3i8ZGCz VgMSxhf241mWeIiIqKXHX5C3zkNqPCu62e//DtTFWdmSquxQuLuJgHLkXVIisjKb+0 XLJkQQuKFtpXUiFIYIS3x1XKVmynltqQ4SYUOZYXmpoqT690P0EqL2+W6RbWY9/g1x JKEhzqUyxhrqGPljZWEfXomO9Pwn7rXF4O1wj9ju2c/A/TptJ6FsMcb92bLYOVASJE 1TIBKLMm1vlEA== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: jason-jh.lin@mediatek.com, chunkuang.hu@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, AngeloGioacchino Del Regno Subject: [PATCH v2 5/9] soc: mediatek: mtk-mutex: Compress of_device_id array entries Date: Wed, 22 Feb 2023 10:42:49 +0100 Message-Id: <20230222094253.23678-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230222094253.23678-1-angelogioacchino.delregno@collabora.com> References: <20230222094253.23678-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Compress entries of the of_match_mtk_mmsys array to reduce the amount of lines and increase readability; this brings us to a maximum of 95 columns. While at it, also add a sentinel comment to the last entry for the sole purpose of consistency. This commit brings no functional changes. Signed-off-by: AngeloGioacchino Del Regno --- drivers/soc/mediatek/mtk-mutex.c | 41 +++++++++++--------------------- 1 file changed, 14 insertions(+), 27 deletions(-) diff --git a/drivers/soc/mediatek/mtk-mutex.c b/drivers/soc/mediatek/mtk-mu= tex.c index 7751527fc30d..a59fde2bdcba 100644 --- a/drivers/soc/mediatek/mtk-mutex.c +++ b/drivers/soc/mediatek/mtk-mutex.c @@ -1040,33 +1040,20 @@ static int mtk_mutex_probe(struct platform_device *= pdev) } =20 static const struct of_device_id mutex_driver_dt_match[] =3D { - { .compatible =3D "mediatek,mt2701-disp-mutex", - .data =3D &mt2701_mutex_driver_data}, - { .compatible =3D "mediatek,mt2712-disp-mutex", - .data =3D &mt2712_mutex_driver_data}, - { .compatible =3D "mediatek,mt6795-disp-mutex", - .data =3D &mt6795_mutex_driver_data}, - { .compatible =3D "mediatek,mt8167-disp-mutex", - .data =3D &mt8167_mutex_driver_data}, - { .compatible =3D "mediatek,mt8173-disp-mutex", - .data =3D &mt8173_mutex_driver_data}, - { .compatible =3D "mediatek,mt8183-disp-mutex", - .data =3D &mt8183_mutex_driver_data}, - { .compatible =3D "mediatek,mt8186-disp-mutex", - .data =3D &mt8186_mutex_driver_data}, - { .compatible =3D "mediatek,mt8186-mdp3-mutex", - .data =3D &mt8186_mdp_mutex_driver_data}, - { .compatible =3D "mediatek,mt8188-disp-mutex", - .data =3D &mt8188_mutex_driver_data}, - { .compatible =3D "mediatek,mt8192-disp-mutex", - .data =3D &mt8192_mutex_driver_data}, - { .compatible =3D "mediatek,mt8195-disp-mutex", - .data =3D &mt8195_mutex_driver_data}, - { .compatible =3D "mediatek,mt8195-vpp-mutex", - .data =3D &mt8195_vpp_mutex_driver_data}, - { .compatible =3D "mediatek,mt8365-disp-mutex", - .data =3D &mt8365_mutex_driver_data}, - {}, + { .compatible =3D "mediatek,mt2701-disp-mutex", .data =3D &mt2701_mutex_d= river_data }, + { .compatible =3D "mediatek,mt2712-disp-mutex", .data =3D &mt2712_mutex_d= river_data }, + { .compatible =3D "mediatek,mt6795-disp-mutex", .data =3D &mt6795_mutex_d= river_data }, + { .compatible =3D "mediatek,mt8167-disp-mutex", .data =3D &mt8167_mutex_d= river_data }, + { .compatible =3D "mediatek,mt8173-disp-mutex", .data =3D &mt8173_mutex_d= river_data }, + { .compatible =3D "mediatek,mt8183-disp-mutex", .data =3D &mt8183_mutex_d= river_data }, + { .compatible =3D "mediatek,mt8186-disp-mutex", .data =3D &mt8186_mutex_d= river_data }, + { .compatible =3D "mediatek,mt8186-mdp3-mutex", .data =3D &mt8186_mdp_mut= ex_driver_data }, + { .compatible =3D "mediatek,mt8188-disp-mutex", .data =3D &mt8188_mutex_d= river_data }, + { .compatible =3D "mediatek,mt8192-disp-mutex", .data =3D &mt8192_mutex_d= river_data }, + { .compatible =3D "mediatek,mt8195-disp-mutex", .data =3D &mt8195_mutex_d= river_data }, + { .compatible =3D "mediatek,mt8195-vpp-mutex", .data =3D &mt8195_vpp_mut= ex_driver_data }, + { .compatible =3D "mediatek,mt8365-disp-mutex", .data =3D &mt8365_mutex_d= river_data }, + { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, mutex_driver_dt_match); =20 --=20 2.39.2