[PATCH v2 0/3] drm/mediatek: General cleanups

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Wed Jul 5 09:42:29 UTC 2023


This series performs some cleanups in drm/mediatek; specifically, changes
it to use devm_platform_ioremap_resource(), dev_err_probe() and
devm_pm_runtime_enable, hence harmonizing log formats and removing some
unneeded lines of code.

Changes in v2:
 - Switched from devm_platform_get_and_ioremap_resource() to dropping
   struct resource pointer with using devm_platform_ioremap_resource()

AngeloGioacchino Del Regno (3):
  drm/mediatek: Use devm_platform_ioremap_resource()
  drm/mediatek: Use dev_err_probe() in probe functions
  drm/mediatek: Use devm variant for pm_runtime_enable() when possible

 drivers/gpu/drm/mediatek/mtk_cec.c            | 29 ++++--------
 drivers/gpu/drm/mediatek/mtk_disp_aal.c       | 22 ++++------
 drivers/gpu/drm/mediatek/mtk_disp_ccorr.c     | 20 +++------
 drivers/gpu/drm/mediatek/mtk_disp_color.c     | 23 ++++------
 drivers/gpu/drm/mediatek/mtk_disp_gamma.c     | 20 +++------
 drivers/gpu/drm/mediatek/mtk_disp_merge.c     | 29 +++++-------
 drivers/gpu/drm/mediatek/mtk_disp_ovl.c       | 27 +++++-------
 .../gpu/drm/mediatek/mtk_disp_ovl_adaptor.c   | 13 +++---
 drivers/gpu/drm/mediatek/mtk_disp_rdma.c      | 44 +++++++------------
 drivers/gpu/drm/mediatek/mtk_dpi.c            |  3 +-
 drivers/gpu/drm/mediatek/mtk_dsi.c            | 22 ++++------
 drivers/gpu/drm/mediatek/mtk_ethdr.c          | 18 ++++----
 drivers/gpu/drm/mediatek/mtk_hdmi.c           | 18 +++-----
 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c       | 18 +++-----
 drivers/gpu/drm/mediatek/mtk_mdp_rdma.c       | 30 +++++--------
 15 files changed, 122 insertions(+), 214 deletions(-)

-- 
2.40.1



More information about the dri-devel mailing list