Skip to content

Commit

Permalink
drm/mediatek: aal: Compress of_device_id entries and add sentinel
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
AngeloGioacchino Del Regno authored and Chun-Kuang Hu committed Oct 16, 2023
1 parent a33a56a commit 3f86604
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/gpu/drm/mediatek/mtk_disp_aal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3f86604

Please sign in to comment.