From patchwork Wed Jul 19 07:50:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 122456 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2290082vqt; Wed, 19 Jul 2023 01:39:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlFLQp1WDZVx4u6lvftfnOJvXaKw7bRX+V34iJ4HjylsSlVtrpQrCsZoSTDSyp1YOXyFXDsT X-Received: by 2002:a17:906:53d6:b0:994:56d3:8a3d with SMTP id p22-20020a17090653d600b0099456d38a3dmr1770251ejo.17.1689755981259; Wed, 19 Jul 2023 01:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689755981; cv=none; d=google.com; s=arc-20160816; b=rizakIVV5SgB/y6Ydxr+aGz/el13xvpfZ6TWjbRO2lpS/rSTKbq4zVZH/9hHhreGXe OAbN95UMPndLvtkZ5eoeSZdu5+ZQVr3eXy+2WUeMH4dYQP6WrNxzb2GdoA81xlAO8Oj2 Rm4TNaul9yWGj3nUFpNLKR3X390E8LOUsNo0McEA72injBlvgVg5jMiPDKTgy6BY0Vf3 DjMQFdX3cND8UYOXujnwZ0oAqVXrUQPYSiJd7y8yyz//k1U5T5eiDlNiMkhDtvDD1gLU 27vIev2e+r0jfjDvyhGZVoi2D/W4uSEI18n6ImfgVwNmRBxjqavjhYkB9BMu3RL5E9A1 q4tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=aI8cJ9QuHC8O0uC8gYyun5z/ClKX85DGvEYkLKDualk=; fh=NKnLsaTUs6DGQa/OThi18WPpEgJ637Y16FMWW8s0AeQ=; b=pkGZys2UmnOK5W79M/9Dp7YX6UeKtZFICGkzPaH1S85EcM9POwrSZBtu9SAAJcHL3m z7Un8CEAR+48kUCXZXb2zW4LgJZnfwVdgDmz+zjtF9Cb7NG7W46bfOTN8vnngSlVf3A/ DDGDrDRT3VSvdTmRV7l5LyRC6e+lysn3ajcNbtEs011qZuzEv1upcFM+Yn59cOTOy2Ss hAWJ2e+pNuPyq0ptGuIKUzJvgvFh+mQ6lAnDGmEIEZDtJeEzC+0Vjf4LcFTd+KQuhJ0x O+oSjVBuTu+XCgA2rkix+uMIESHxLzI5QndbiNCkL7er7Vpp7wqU1ASAlRmFYfHOCofn D8lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=fNGCuNJz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ce8-20020a170906b24800b009930d9d6b4csi2531208ejb.888.2023.07.19.01.39.15; Wed, 19 Jul 2023 01:39:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=fNGCuNJz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230295AbjGSHvc (ORCPT + 99 others); Wed, 19 Jul 2023 03:51:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbjGSHvN (ORCPT ); Wed, 19 Jul 2023 03:51:13 -0400 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 97F721736 for ; Wed, 19 Jul 2023 00:51:12 -0700 (PDT) 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 BB3976607070; Wed, 19 Jul 2023 08:51:10 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689753071; bh=njEiJKpcfz3CxTzbe9ovf4JbHnWi0lISeut4u5WR9b0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fNGCuNJzIqoBu7pmMvPVIs77YXhD/FXlxhrJydbQ4hyD8m0M86QcpWEx2cfnse0a9 sud3E5UINvYro4eEFEcOh8XHg+g04JqM5GsvbA6a3oZUu5dJjTaE89Cjx22kI6S0u6 NG3qBjQhDB3sH6pcs1/kNUV2mybd+ncj2AIAmnHMEyODk8g95X+/F1vNlNxK8zOSTy G+hhSF03G8OuY5WmdQl0S4hZVs+ib57XJrIXtGxecIqg4s44/TGgKb7CwwOaLFBzIr iaA6Cb2TJy+p75pWR48Tb6DTVcfOAPZ6LGnDxObn0Gt95qdrxt9uMf7RoCDNEJShDq 5Z+D5k63RbexA== From: AngeloGioacchino Del Regno To: chunkuang.hu@kernel.org Cc: 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, fshao@chromium.org Subject: [PATCH v2 6/6] drm/mediatek: mtk_dpi: Compress struct of_device_id entries Date: Wed, 19 Jul 2023 09:50:56 +0200 Message-Id: <20230719075056.72178-7-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230719075056.72178-1-angelogioacchino.delregno@collabora.com> References: <20230719075056.72178-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771837567352083579 X-GMAIL-MSGID: 1771837567352083579 Reduce line count by compressing the entries of struct of_device_id; while at it, also add the usual /* sentinel */ comment to the last entry. This commit brings no functional changes. Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Fei Shao Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_dpi.c | 30 ++++++++---------------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 244340df7468..ad1be4f9150c 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -1091,28 +1091,14 @@ static void mtk_dpi_remove(struct platform_device *pdev) } static const struct of_device_id mtk_dpi_of_ids[] = { - { .compatible = "mediatek,mt2701-dpi", - .data = &mt2701_conf, - }, - { .compatible = "mediatek,mt8173-dpi", - .data = &mt8173_conf, - }, - { .compatible = "mediatek,mt8183-dpi", - .data = &mt8183_conf, - }, - { .compatible = "mediatek,mt8186-dpi", - .data = &mt8186_conf, - }, - { .compatible = "mediatek,mt8188-dp-intf", - .data = &mt8188_dpintf_conf, - }, - { .compatible = "mediatek,mt8192-dpi", - .data = &mt8192_conf, - }, - { .compatible = "mediatek,mt8195-dp-intf", - .data = &mt8195_dpintf_conf, - }, - { }, + { .compatible = "mediatek,mt2701-dpi", .data = &mt2701_conf }, + { .compatible = "mediatek,mt8173-dpi", .data = &mt8173_conf }, + { .compatible = "mediatek,mt8183-dpi", .data = &mt8183_conf }, + { .compatible = "mediatek,mt8186-dpi", .data = &mt8186_conf }, + { .compatible = "mediatek,mt8188-dp-intf", .data = &mt8188_dpintf_conf }, + { .compatible = "mediatek,mt8192-dpi", .data = &mt8192_conf }, + { .compatible = "mediatek,mt8195-dp-intf", .data = &mt8195_dpintf_conf }, + { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, mtk_dpi_of_ids);