drm/mediatek: aal: Compress of_device_id entries and add sentinel
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 12 Oct 2023 09:57:36 +0000 (11:57 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Mon, 16 Oct 2023 15:35:09 +0000 (15:35 +0000)
Compress the entry for mediatek,mt8173-disp-aal, as it fits in one
line, and fix the style; 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>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20231012095736.100784-17-angelogioacchino.delregno@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_disp_aal.c

index bfcdb711a29f67e60cbda33a40867bb2d4aaf859..ca50160a0c732aecb7193e5c22d9397b9034a4de 100644 (file)
@@ -213,10 +213,9 @@ static const struct mtk_disp_aal_data mt8173_aal_driver_data = {
 };
 
 static const struct of_device_id mtk_disp_aal_driver_dt_match[] = {
-       { .compatible = "mediatek,mt8173-disp-aal",
-         .data = &mt8173_aal_driver_data},
-       { .compatible = "mediatek,mt8183-disp-aal"},
-       {},
+       { .compatible = "mediatek,mt8173-disp-aal", .data = &mt8173_aal_driver_data },
+       { .compatible = "mediatek,mt8183-disp-aal" },
+       { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, mtk_disp_aal_driver_dt_match);