<pre>
Hi, Angelo:
On Wed, 2023-07-19 at 09:50 +0200, AngeloGioacchino Del Regno wrote:
> 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.
Reviewed-by: CK Hu <ck.hu@mediatek.com>
>
> Signed-off-by: AngeloGioacchino Del Regno <
> angelogioacchino.delregno@collabora.com>
> ---
> 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);
>
</pre><!--type:text--><!--{--><pre>************* MEDIATEK Confidentiality Notice ********************
The information contained in this e-mail message (including any
attachments) may be confidential, proprietary, privileged, or otherwise
exempt from disclosure under applicable laws. It is intended to be
conveyed only to the designated recipient(s). Any use, dissemination,
distribution, printing, retaining or copying of this e-mail (including its
attachments) by unintended recipient(s) is strictly prohibited and may
be unlawful. If you are not an intended recipient of this e-mail, or believe
that you have received this e-mail in error, please notify the sender
immediately (by replying to this e-mail), delete any and all copies of
this e-mail (including any attachments) from your system, and do not
disclose the content of this e-mail to any other person. Thank you!
</pre><!--}-->