Skip to content

Commit 3f86604

Browse files
AngeloGioacchino Del RegnoChun-Kuang Hu
authored andcommitted
drm/mediatek: aal: Compress of_device_id entries and add sentinel
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>
1 parent a33a56a commit 3f86604

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

drivers/gpu/drm/mediatek/mtk_disp_aal.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,9 @@ static const struct mtk_disp_aal_data mt8173_aal_driver_data = {
213213
};
214214

215215
static const struct of_device_id mtk_disp_aal_driver_dt_match[] = {
216-
{ .compatible = "mediatek,mt8173-disp-aal",
217-
.data = &mt8173_aal_driver_data},
218-
{ .compatible = "mediatek,mt8183-disp-aal"},
219-
{},
216+
{ .compatible = "mediatek,mt8173-disp-aal", .data = &mt8173_aal_driver_data },
217+
{ .compatible = "mediatek,mt8183-disp-aal" },
218+
{ /* sentinel */ }
220219
};
221220
MODULE_DEVICE_TABLE(of, mtk_disp_aal_driver_dt_match);
222221

0 commit comments

Comments
 (0)