Skip to contentSkip to conversation

drm: Improvements around device-id arrays

PATCH In review Uwe Kleine-König 4 participants 16 messages Nov 18

Subsystems (115)
lore
Share & tools
lore
#0 lore raw

cover drm: Improvements around device-id arrays

the motivation for this series is the wish to replace .driver_data in various *_device_id structs by an anonymous union. See
https://lore.kernel.org/all/[email protected]/
for the idea behind that and the added benefit.

This bases on top of yesterday's next. (Note:
https://lore.kernel.org/all/[email protected]/
is also needed for my quest, but this is orthogonal to this series.)

I didn't split the patches per driver or maintainer team, and I hope I don't need to because that is quite some effort for very little gain. I'm happy to provide a stable branch for the unsplit series if desired. For that I'd rebase on top of v7.4-rc1 in the hope that there aren't too many changes that were introduced after that point that need adaption here.

All but the last patch is necessary to progress with the quest pointed out above. If you consider the last patch churn, that's fine for me, just drop it then.

I didn't add everyone to Cc: who was emitted by get_maintainer.pl to not trigger mail server limits. Even only keeping maintainers and lists was too much.

Best regards
Uwe

Uwe Kleine-König (9):
drm/amdgpu: Use named initializer for acpi_device_id array drm/sitronix/st7571-i2c: Drop unused assignment of i2c_device_id
driver data
drm: Drop unused assignment of spi_device_id driver_data
drm: Use designated initializers for spi_device_id arrays
drm: Use designated initializers for i2c_device_id arrays
drm: Use designated initializers for of_device_id arrays
drm: Use an empty initializer as pci_device_id array terminator drm/pl111: Use an empty initializer as amba_id array terminator
drm: Unify coding style for *_device_id arrays

 drivers/gpu/drm/adp/adp-mipi.c                |   4 +-
 drivers/gpu/drm/adp/adp_drv.c                 |   4 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c      |   2 +-
 .../gpu/drm/arm/display/komeda/komeda_drv.c   |   8 +-
 drivers/gpu/drm/arm/hdlcd_drv.c               |   4 +-
 drivers/gpu/drm/arm/malidp_drv.c              |   8 +-
 drivers/gpu/drm/armada/armada_crtc.c          |   2 +-
 drivers/gpu/drm/aspeed/aspeed_gfx_drv.c       |   2 +-
 drivers/gpu/drm/ast/ast_drv.c                 |   2 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c  |   4 +-
 .../drm/bridge/analogix/analogix-anx6345.c    |   4 +-
 .../drm/bridge/analogix/analogix-anx78xx.c    |   2 +-
 drivers/gpu/drm/bridge/analogix/anx7625.c     |   4 +-
 drivers/gpu/drm/bridge/chipone-icn6211.c      |   2 +-
 drivers/gpu/drm/bridge/chrontel-ch7033.c      |   2 +-
 drivers/gpu/drm/bridge/display-connector.c    |   2 +-
 drivers/gpu/drm/bridge/fsl-ldb.c              |  23 +-
 drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c  |   7 +-
 .../drm/bridge/imx/imx8qxp-pixel-combiner.c   |   4 +-
 .../gpu/drm/bridge/imx/imx8qxp-pixel-link.c   |   4 +-
 drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c  |   2 +-
 drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c   |   2 +-
 drivers/gpu/drm/bridge/imx/imx93-pdfc.c       |   4 +-
 drivers/gpu/drm/bridge/ite-it6263.c           |   2 +-
 drivers/gpu/drm/bridge/lontium-lt8912b.c      |   4 +-
 drivers/gpu/drm/bridge/lontium-lt9211.c       |   2 +-
 drivers/gpu/drm/bridge/lvds-codec.c           |   2 +-
 .../bridge/megachips-stdpxxxx-ge-b850v3-fw.c  |   4 +-
 drivers/gpu/drm/bridge/microchip-lvds.c       |   6 +-
 drivers/gpu/drm/bridge/nwl-dsi.c              |   2 +-
 drivers/gpu/drm/bridge/nxp-ptn3460.c          |   2 +-
 drivers/gpu/drm/bridge/parade-ps8622.c        |   6 +-
 drivers/gpu/drm/bridge/sii902x.c              |   2 +-
 drivers/gpu/drm/bridge/sii9234.c              |   2 +-
 drivers/gpu/drm/bridge/sil-sii8620.c          |   2 +-
 drivers/gpu/drm/bridge/tc358767.c             |   2 +-
 drivers/gpu/drm/bridge/tc358768.c             |   4 +-
 drivers/gpu/drm/bridge/tc358775.c             |   4 +-
 drivers/gpu/drm/bridge/tda998x_drv.c          |   2 +-
 drivers/gpu/drm/bridge/th1520-dw-hdmi.c       |   2 +-
 drivers/gpu/drm/bridge/thc63lvd1024.c         |   4 +-
 drivers/gpu/drm/bridge/ti-sn65dsi83.c         |   2 +-
 drivers/gpu/drm/bridge/ti-sn65dsi86.c         |   4 +-
 drivers/gpu/drm/bridge/ti-tfp410.c            |   2 +-
 drivers/gpu/drm/bridge/ti-tpd12s015.c         |   4 +-
 drivers/gpu/drm/bridge/waveshare-dsi.c        |   4 +-
 drivers/gpu/drm/etnaviv/etnaviv_gpu.c         |   2 +-
 drivers/gpu/drm/exynos/exynos5433_drm_decon.c |   6 +-
 drivers/gpu/drm/exynos/exynos7_drm_decon.c    |   2 +-
 drivers/gpu/drm/exynos/exynos_dp.c            |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_fimc.c      |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_fimd.c      |  33 +-
 drivers/gpu/drm/exynos/exynos_drm_g2d.c       |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_gsc.c       |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_rotator.c   |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_scaler.c    |   2 +-
 drivers/gpu/drm/exynos/exynos_hdmi.c          |   5 +-
 drivers/gpu/drm/exynos/exynos_mixer.c         |  15 +-
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c     |   2 +-
 .../gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c   |   2 +-
 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c  |   2 +-
 .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c   |   7 +-
 .../drm/i915/display/intel_display_device.c   |   2 +-
 .../gpu/drm/i915/display/intel_lpe_audio.c    |   6 +-
 drivers/gpu/drm/i915/i915_pci.c               |   2 +-
 drivers/gpu/drm/imagination/pvr_drv.c         |   2 +-
 drivers/gpu/drm/imx/dc/dc-drv.c               |   2 +-
 drivers/gpu/drm/imx/dc/dc-ic.c                |   2 +-
 drivers/gpu/drm/imx/dc/dc-pe.c                |   2 +-
 drivers/gpu/drm/imx/dcss/dcss-drv.c           |   4 +-
 drivers/gpu/drm/imx/ipuv3/dw_hdmi-imx.c       |  11 +-
 drivers/gpu/drm/imx/ipuv3/imx-drm-core.c      |   4 +-
 drivers/gpu/drm/imx/ipuv3/imx-ldb.c           |   4 +-
 drivers/gpu/drm/imx/ipuv3/imx-tve.c           |   2 +-
 drivers/gpu/drm/imx/ipuv3/parallel-display.c  |   2 +-
 drivers/gpu/drm/ingenic/ingenic-drm-drv.c     |   2 +-
 drivers/gpu/drm/ingenic/ingenic-dw-hdmi.c     |   2 +-
 drivers/gpu/drm/ingenic/ingenic-ipu.c         |   2 +-
 drivers/gpu/drm/kmb/kmb_drv.c                 |   4 +-
 drivers/gpu/drm/lima/lima_drv.c               |   2 +-
 drivers/gpu/drm/logicvc/logicvc_drm.c         |   2 +-
 drivers/gpu/drm/mcde/mcde_drv.c               |   2 +-
 drivers/gpu/drm/mcde/mcde_dsi.c               |   2 +-
 drivers/gpu/drm/mediatek/mtk_cec.c            |   4 +-
 drivers/gpu/drm/mediatek/mtk_disp_ccorr.c     |  14 +-
 drivers/gpu/drm/mediatek/mtk_disp_color.c     |  20 +-
 drivers/gpu/drm/mediatek/mtk_disp_gamma.c     |  20 +-
 drivers/gpu/drm/mediatek/mtk_disp_merge.c     |   4 +-
 drivers/gpu/drm/mediatek/mtk_disp_ovl.c       |  50 ++-
 drivers/gpu/drm/mediatek/mtk_disp_rdma.c      |  26 +-
 drivers/gpu/drm/mediatek/mtk_dp.c             |   2 +-
 drivers/gpu/drm/mediatek/mtk_dpi.c            |   2 +-
 drivers/gpu/drm/mediatek/mtk_drm_drv.c        | 395 +++++++++++-------
 drivers/gpu/drm/mediatek/mtk_ethdr.c          |   4 +-
 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c       |   4 +-
 drivers/gpu/drm/mediatek/mtk_mdp_rdma.c       |   4 +-
 drivers/gpu/drm/meson/meson_drv.c             |  28 +-
 drivers/gpu/drm/meson/meson_dw_hdmi.c         |  24 +-
 drivers/gpu/drm/meson/meson_dw_mipi_dsi.c     |   2 +-
 drivers/gpu/drm/msm/adreno/adreno_device.c    |   2 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c       |  70 ++--
 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c      |   6 +-
 drivers/gpu/drm/msm/dp/dp_display.c           |   2 +-
 drivers/gpu/drm/msm/dsi/dsi.c                 |   2 +-
 drivers/gpu/drm/msm/hdmi/hdmi.c               |   2 +-
 drivers/gpu/drm/msm/hdmi/hdmi_phy.c           |  38 +-
 drivers/gpu/drm/msm/msm_drv.c                 |   2 +-
 drivers/gpu/drm/msm/msm_mdss.c                |   2 +-
 drivers/gpu/drm/mxsfb/mxsfb_drv.c             |   6 +-
 .../gpu/drm/nouveau/dispnv04/i2c/ch7006_drv.c |   2 +-
 .../gpu/drm/nouveau/dispnv04/i2c/sil164_drv.c |   2 +-
 drivers/gpu/drm/nouveau/nouveau_drm.c         |   2 +-
 drivers/gpu/drm/omapdrm/dss/dispc.c           |   2 +-
 drivers/gpu/drm/omapdrm/dss/dsi.c             |   8 +-
 drivers/gpu/drm/omapdrm/dss/dss.c             |   2 +-
 drivers/gpu/drm/omapdrm/dss/hdmi4.c           |   4 +-
 drivers/gpu/drm/omapdrm/dss/hdmi5.c           |   6 +-
 drivers/gpu/drm/omapdrm/dss/venc.c            |   8 +-
 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c      |   2 +-
 drivers/gpu/drm/panel/panel-arm-versatile.c   |   4 +-
 drivers/gpu/drm/panel/panel-auo-a030jtn01.c   |   5 +-
 drivers/gpu/drm/panel/panel-boe-himax8279d.c  |   4 +-
 .../drm/panel/panel-boe-th101mb31ig002-28a.c  |   4 +-
 .../gpu/drm/panel/panel-boe-tv101wum-nl6.c    |  47 ++-
 drivers/gpu/drm/panel/panel-dsi-cm.c          |   6 +-
 drivers/gpu/drm/panel/panel-edp.c             |   5 +-
 .../gpu/drm/panel/panel-feixin-k101-im2ba02.c |   2 +-
 .../drm/panel/panel-feiyang-fy07024di26a30d.c |   2 +-
 .../gpu/drm/panel/panel-focaltech-ota7290b.c  |   4 +-
 drivers/gpu/drm/panel/panel-himax-hx83102.c   |  47 ++-
 drivers/gpu/drm/panel/panel-ilitek-ili9341.c  |   2 +-
 .../gpu/drm/panel/panel-ilitek-ili9806e-spi.c |   2 +-
 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c |   4 +-
 drivers/gpu/drm/panel/panel-ilitek-ili9882t.c |  17 +-
 drivers/gpu/drm/panel/panel-innolux-p079zca.c |  11 +-
 .../gpu/drm/panel/panel-jadard-jd9365da-h3.c  |  30 +-
 drivers/gpu/drm/panel/panel-jdi-lpm102a188a.c |   2 +-
 .../gpu/drm/panel/panel-jdi-lt070me05000.c    |   2 +-
 drivers/gpu/drm/panel/panel-khadas-ts050.c    |   4 +-
 .../drm/panel/panel-kingdisplay-kd097d04.c    |   2 +-
 drivers/gpu/drm/panel/panel-lg-lb035q02.c     |   6 +-
 drivers/gpu/drm/panel/panel-lg-sw43408.c      |   4 +-
 .../gpu/drm/panel/panel-lincolntech-lcd197.c  |   2 +-
 drivers/gpu/drm/panel/panel-lvds.c            |   4 +-
 .../drm/panel/panel-magnachip-d53e6ea8966.c   |   4 +-
 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c  |   6 +-
 .../gpu/drm/panel/panel-newvision-nv3052c.c   |   6 +-
 drivers/gpu/drm/panel/panel-novatek-nt35950.c |   2 +-
 drivers/gpu/drm/panel/panel-novatek-nt36523.c |   2 +-
 .../gpu/drm/panel/panel-novatek-nt36672a.c    |   2 +-
 drivers/gpu/drm/panel/panel-novatek-nt36850.c |   2 +-
 drivers/gpu/drm/panel/panel-novatek-nt37801.c |   2 +-
 .../gpu/drm/panel/panel-orisetech-ota5601a.c  |   2 +-
 .../drm/panel/panel-osd-osd101t2587-53ts.c    |   5 +-
 .../drm/panel/panel-panasonic-vvx10f034n00.c  |   2 +-
 drivers/gpu/drm/panel/panel-raydium-rm67191.c |   2 +-
 drivers/gpu/drm/panel/panel-renesas-r63419.c  |   2 +-
 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c  |   2 +-
 .../gpu/drm/panel/panel-samsung-atna33xc20.c  |   2 +-
 drivers/gpu/drm/panel/panel-samsung-db7430.c  |   8 +-
 drivers/gpu/drm/panel/panel-samsung-ld9040.c  |   2 +-
 drivers/gpu/drm/panel/panel-samsung-s6d27a1.c |   4 +-
 drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c |   6 +-
 .../panel/panel-samsung-s6e88a0-ams427ap24.c  |   2 +-
 .../panel/panel-samsung-s6e88a0-ams452ef01.c  |   2 +-
 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c   |   5 +-
 .../gpu/drm/panel/panel-sharp-lq101r1sx01.c   |   2 +-
 .../gpu/drm/panel/panel-sharp-ls037v7dw01.c   |   4 +-
 .../gpu/drm/panel/panel-sharp-ls043t1le01.c   |   2 +-
 drivers/gpu/drm/panel/panel-simple.c          |  70 ++--
 drivers/gpu/drm/panel/panel-sitronix-st7701.c |   2 +-
 .../gpu/drm/panel/panel-sitronix-st7789v.c    |  26 +-
 drivers/gpu/drm/panel/panel-sony-acx565akm.c  |   6 +-
 .../drm/panel/panel-startek-kd070fhfid015.c   |   2 +-
 drivers/gpu/drm/panel/panel-summit.c          |   2 +-
 drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c  |   2 +-
 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c  |   8 +-
 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c  |   6 +-
 drivers/gpu/drm/panel/panel-tpo-tpg110.c      |   8 +-
 drivers/gpu/drm/panel/panel-visionox-r66451.c |   2 +-
 .../gpu/drm/panel/panel-visionox-rm69299.c    |  12 +-
 .../gpu/drm/panel/panel-widechips-ws2401.c    |   8 +-
 drivers/gpu/drm/panfrost/panfrost_drv.c       |  36 +-
 drivers/gpu/drm/panthor/panthor_drv.c         |   4 +-
 drivers/gpu/drm/pl111/pl111_drv.c             |   2 +-
 drivers/gpu/drm/pl111/pl111_versatile.c       |   4 +-
 drivers/gpu/drm/qxl/qxl_drv.c                 |   6 +-
 drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c    |   6 +-
 drivers/gpu/drm/renesas/rcar-du/rcar_dsc.c    |   2 +-
 .../gpu/drm/renesas/rcar-du/rcar_dw_hdmi.c    |   2 +-
 .../gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c    |   6 +-
 .../gpu/drm/rockchip/analogix_dp-rockchip.c   |  12 +-
 drivers/gpu/drm/rockchip/cdn-dp-core.c        |   8 +-
 .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   |  32 +-
 .../gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c  |   2 +-
 drivers/gpu/drm/rockchip/dw_dp-rockchip.c     |   2 +-
 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c   |  32 +-
 .../gpu/drm/rockchip/dw_hdmi_qp-rockchip.c    |   6 +-
 drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c |  12 +-
 drivers/gpu/drm/rockchip/rk3066_hdmi.c        |   2 +-
 drivers/gpu/drm/rockchip/rockchip_drm_drv.c   |   4 +-
 drivers/gpu/drm/rockchip/rockchip_lvds.c      |   6 +-
 drivers/gpu/drm/rockchip/rockchip_vop2_reg.c  |   4 +-
 drivers/gpu/drm/rockchip/rockchip_vop_reg.c   |  92 ++--
 drivers/gpu/drm/sitronix/st7571-i2c.c         |   6 +-
 drivers/gpu/drm/sitronix/st7571-spi.c         |   6 +-
 drivers/gpu/drm/sitronix/st7586.c             |   6 +-
 drivers/gpu/drm/sitronix/st7735r.c            |   8 +-
 drivers/gpu/drm/sitronix/st7920.c             |   2 +-
 drivers/gpu/drm/sprd/sprd_dpu.c               |   2 +-
 drivers/gpu/drm/sprd/sprd_drm.c               |   4 +-
 drivers/gpu/drm/sprd/sprd_dsi.c               |   2 +-
 drivers/gpu/drm/sti/sti_compositor.c          |   5 +-
 drivers/gpu/drm/sti/sti_drv.c                 |   4 +-
 drivers/gpu/drm/sti/sti_dvo.c                 |   2 +-
 drivers/gpu/drm/sti/sti_hda.c                 |   4 +-
 drivers/gpu/drm/sti/sti_hdmi.c                |   5 +-
 drivers/gpu/drm/sti/sti_hqvdp.c               |   2 +-
 drivers/gpu/drm/sti/sti_tvout.c               |   2 +-
 drivers/gpu/drm/sti/sti_vtg.c                 |   2 +-
 drivers/gpu/drm/stm/drv.c                     |   8 +-
 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c         |   4 +-
 drivers/gpu/drm/stm/lvds.c                    |   2 +-
 drivers/gpu/drm/sun4i/sun4i_frontend.c        |   8 +-
 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c        |   6 +-
 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c        |  12 +-
 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c         |   2 +-
 drivers/gpu/drm/sun4i/sun8i_tcon_top.c        |   6 +-
 drivers/gpu/drm/sysfb/ofdrm.c                 |   4 +-
 drivers/gpu/drm/sysfb/simpledrm.c             |   4 +-
 drivers/gpu/drm/tegra/dc.c                    |   5 +-
 drivers/gpu/drm/tegra/dpaux.c                 |   2 +-
 drivers/gpu/drm/tegra/drm.c                   |  84 ++--
 drivers/gpu/drm/tegra/dsi.c                   |   2 +-
 drivers/gpu/drm/tegra/gr2d.c                  |   2 +-
 drivers/gpu/drm/tegra/hdmi.c                  |   2 +-
 drivers/gpu/drm/tegra/hub.c                   |   9 +-
 drivers/gpu/drm/tegra/nvdec.c                 |   2 +-
 drivers/gpu/drm/tegra/nvjpg.c                 |   2 +-
 drivers/gpu/drm/tegra/sor.c                   |   2 +-
 drivers/gpu/drm/tegra/vic.c                   |   2 +-
 drivers/gpu/drm/tidss/tidss_drv.c             |  12 +-
 drivers/gpu/drm/tilcdc/tilcdc_drv.c           |   6 +-
 drivers/gpu/drm/tiny/arcpgu.c                 |   4 +-
 drivers/gpu/drm/tiny/hx8357d.c                |   2 +-
 drivers/gpu/drm/tiny/ili9163.c                |   2 +-
 drivers/gpu/drm/tiny/ili9225.c                |   6 +-
 drivers/gpu/drm/tiny/ili9341.c                |   2 +-
 drivers/gpu/drm/tiny/ili9486.c                |   8 +-
 drivers/gpu/drm/tiny/mi0283qt.c               |   6 +-
 drivers/gpu/drm/tiny/panel-mipi-dbi.c         |   6 +-
 drivers/gpu/drm/tiny/pixpaper.c               |   7 +-
 drivers/gpu/drm/tiny/repaper.c                |  12 +-
 drivers/gpu/drm/tiny/sharp-memory.c           |  44 +-
 drivers/gpu/drm/tve200/tve200_drv.c           |   2 +-
 drivers/gpu/drm/v3d/v3d_drv.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_crtc.c                |   2 +-
 drivers/gpu/drm/vc4/vc4_dpi.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_drv.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_dsi.c                 |   8 +-
 drivers/gpu/drm/vc4/vc4_hdmi.c                |   2 +-
 drivers/gpu/drm/vc4/vc4_hvs.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_txp.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_v3d.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_vec.c                 |   2 +-
 drivers/gpu/drm/verisilicon/vs_dc.c           |   2 +-
 drivers/gpu/drm/xlnx/zynqmp_dpsub.c           |   4 +-
 drivers/gpu/host1x/dev.c                      |  20 +-
 drivers/gpu/host1x/tegra114-mipi.c            |   2 +-
 drivers/gpu/ipu-v3/ipu-common.c               |   8 +-
 drivers/gpu/ipu-v3/ipu-pre.c                  |   4 +-
 drivers/gpu/ipu-v3/ipu-prg.c                  |   4 +-
 272 files changed, 1238 insertions(+), 1017 deletions(-)

base-commit: 7cfbf79c66c63e807ea452abf0546e6f6d6833a6

Signature · 1 line
2.56.0.rc1
#1 lore raw

PATCH 1/9 drm/amdgpu: Use named initializer for acpi_device_id array

Named initializers are better readable and more robust to changes of the struct definition. This change isn't needed for the planned change to struct acpi_device_id replacing .driver_data by an anonymous union but aligns this driver to the common style to define such arrays.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +1 -1
index 4874ee864b80..9175680b6a81 100644
@@ -1729,7 +1729,7 @@ bool amdgpu_acpi_is_s0ix_active(struct amdgpu_device *adev)
 
 #if IS_ENABLED(CONFIG_DRM_AMD_ISP)
 static const struct acpi_device_id isp_sensor_ids[] = {
-	{ "OMNI5C10" },
+	{ .id = "OMNI5C10" },
 	{ }
 };
 
Signature · 1 line
2.56.0.rc1
#2 lore raw

PATCH 2/9 drm/sitronix/st7571-i2c: Drop unused assignment of i2c_device_id driver data

In reply to Uwe Kleine-König

The driver explicitly sets the .driver_data member of struct i2c_device_id to zero without relying on that value. Drop this unused assignment. While touching that array also use a designated initializer for .name.

---
 drivers/gpu/drm/sitronix/st7571-i2c.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/sitronix/st7571-i2c.c +2 -2
index c96490b6e499..e66eaa059439 100644
@@ -134,8 +134,8 @@ static const struct of_device_id st7571_of_match[] = {
 MODULE_DEVICE_TABLE(of, st7571_of_match);
 
 static const struct i2c_device_id st7571_id[] = {
-	{ "st7567", 0 },
-	{ "st7571", 0 },
+	{ .name = "st7567" },
+	{ .name = "st7571" },
 	{ }
 };
 MODULE_DEVICE_TABLE(i2c, st7571_id);
Signature · 1 line
2.56.0.rc1
#3 lore raw

PATCH 3/9 drm: Drop unused assignment of spi_device_id driver_data

In reply to Uwe Kleine-König

The driver explicitly sets the .driver_data member of struct spi_device_id to zero without relying on that value. Drop this unused assignment.

---
 drivers/gpu/drm/panel/panel-ilitek-ili9341.c        | 2 +-
 drivers/gpu/drm/panel/panel-lg-lb035q02.c           | 2 +-
 drivers/gpu/drm/panel/panel-magnachip-d53e6ea8966.c | 2 +-
 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c        | 2 +-
 drivers/gpu/drm/panel/panel-sony-acx565akm.c        | 2 +-
 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c        | 2 +-
 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c        | 2 +-
 drivers/gpu/drm/sitronix/st7571-spi.c               | 4 ++--
 drivers/gpu/drm/sitronix/st7586.c                   | 2 +-
 drivers/gpu/drm/tiny/hx8357d.c                      | 2 +-
 drivers/gpu/drm/tiny/ili9163.c                      | 2 +-
 drivers/gpu/drm/tiny/ili9225.c                      | 2 +-
 drivers/gpu/drm/tiny/ili9341.c                      | 2 +-
 drivers/gpu/drm/tiny/ili9486.c                      | 6 +++---
 drivers/gpu/drm/tiny/mi0283qt.c                     | 2 +-
 drivers/gpu/drm/tiny/panel-mipi-dbi.c               | 2 +-
 drivers/gpu/drm/tiny/pixpaper.c                     | 5 ++++-
 17 files changed, 23 insertions(+), 20 deletions(-)
drivers/gpu/drm/panel/panel-ilitek-ili9341.c +1 -1
index 0bab6f086717..babbf65ac38b 100644
@@ -565,7 +565,7 @@ static const struct of_device_id ili9341_of_match[] = {
 MODULE_DEVICE_TABLE(of, ili9341_of_match);
 
 static const struct spi_device_id ili9341_id[] = {
-	{ "sf-tc240t-9370-t", 0 },
+	{ .name = "sf-tc240t-9370-t" },
 	{ }
 };
 MODULE_DEVICE_TABLE(spi, ili9341_id);
drivers/gpu/drm/panel/panel-lg-lb035q02.c +1 -1
index b2be6727bf73..30590aabd9d3 100644
@@ -217,7 +217,7 @@ static const struct of_device_id lb035q02_of_match[] = {
 MODULE_DEVICE_TABLE(of, lb035q02_of_match);
 
 static const struct spi_device_id lb035q02_ids[] = {
-	{ "lb035q02", 0 },
+	{ .name = "lb035q02" },
 	{ /* sentinel */ }
 };
 
drivers/gpu/drm/panel/panel-magnachip-d53e6ea8966.c +1 -1
index cde168ec631c..e332ec685484 100644
@@ -499,7 +499,7 @@ static const struct of_device_id d53e6ea8966_match[] = {
 MODULE_DEVICE_TABLE(of, d53e6ea8966_match);
 
 static const struct spi_device_id d53e6ea8966_ids[] = {
-	{ "ams495qa01", 0 },
+	{ .name = "ams495qa01" },
 	{ /* sentinel */ },
 };
 MODULE_DEVICE_TABLE(spi, d53e6ea8966_ids);
drivers/gpu/drm/panel/panel-nec-nl8048hl11.c +1 -1
index d5c7210de4af..bbd70572fe0c 100644
@@ -227,7 +227,7 @@ static const struct of_device_id nl8048_of_match[] = {
 MODULE_DEVICE_TABLE(of, nl8048_of_match);
 
 static const struct spi_device_id nl8048_ids[] = {
-	{ "nl8048hl11", 0 },
+	{ .name = "nl8048hl11" },
 	{ /* sentinel */ }
 };
 
drivers/gpu/drm/panel/panel-sony-acx565akm.c +1 -1
index fe043de791b0..7e5e69cc9f6e 100644
@@ -659,7 +659,7 @@ static const struct of_device_id acx565akm_of_match[] = {
 MODULE_DEVICE_TABLE(of, acx565akm_of_match);
 
 static const struct spi_device_id acx565akm_ids[] = {
-	{ "acx565akm", 0 },
+	{ .name = "acx565akm" },
 	{ /* sentinel */ }
 };
 
drivers/gpu/drm/panel/panel-tpo-td028ttec1.c +1 -1
index ee86ff20c1bd..48c4cb68da44 100644
@@ -364,7 +364,7 @@ static const struct of_device_id td028ttec1_of_match[] = {
 MODULE_DEVICE_TABLE(of, td028ttec1_of_match);
 
 static const struct spi_device_id td028ttec1_ids[] = {
-	{ "td028ttec1", 0 },
+	{ .name = "td028ttec1" },
 	{ /* sentinel */ }
 };
 
drivers/gpu/drm/panel/panel-tpo-td043mtea1.c +1 -1
index b18af526b54c..77c5ea2954b8 100644
@@ -480,7 +480,7 @@ static const struct of_device_id td043mtea1_of_match[] = {
 MODULE_DEVICE_TABLE(of, td043mtea1_of_match);
 
 static const struct spi_device_id td043mtea1_ids[] = {
-	{ "td043mtea1", 0 },
+	{ .name = "td043mtea1" },
 	{ /* sentinel */ }
 };
 
drivers/gpu/drm/sitronix/st7571-spi.c +2 -2
index 0206e9162f1c..2db85ad78721 100644
@@ -52,8 +52,8 @@ static const struct of_device_id st7571_of_match[] = {
 MODULE_DEVICE_TABLE(of, st7571_of_match);
 
 static const struct spi_device_id st7571_spi_id[] = {
-	{ "st7567", 0 },
-	{ "st7571", 0 },
+	{ .name = "st7567" },
+	{ .name = "st7571" },
 	{ }
 };
 MODULE_DEVICE_TABLE(spi, st7571_spi_id);
drivers/gpu/drm/sitronix/st7586.c +1 -1
index 28b2245f6b79..0760f771163a 100644
@@ -352,7 +352,7 @@ static const struct of_device_id st7586_of_match[] = {
 MODULE_DEVICE_TABLE(of, st7586_of_match);
 
 static const struct spi_device_id st7586_id[] = {
-	{ "ev3-lcd", 0 },
+	{ .name = "ev3-lcd" },
 	{ },
 };
 MODULE_DEVICE_TABLE(spi, st7586_id);
drivers/gpu/drm/tiny/hx8357d.c +1 -1
index f942a8d09ff2..9ac21aec01e1 100644
@@ -271,7 +271,7 @@ static const struct of_device_id hx8357d_of_match[] = {
 MODULE_DEVICE_TABLE(of, hx8357d_of_match);
 
 static const struct spi_device_id hx8357d_id[] = {
-	{ "yx350hv15", 0 },
+	{ .name = "yx350hv15" },
 	{ }
 };
 MODULE_DEVICE_TABLE(spi, hx8357d_id);
drivers/gpu/drm/tiny/ili9163.c +1 -1
index 8842424504e3..97262ca45734 100644
@@ -190,7 +190,7 @@ static const struct of_device_id ili9163_of_match[] = {
 MODULE_DEVICE_TABLE(of, ili9163_of_match);
 
 static const struct spi_device_id ili9163_id[] = {
-	{ "nhd-1.8-128160EF", 0 },
+	{ .name = "nhd-1.8-128160EF" },
 	{ }
 };
 MODULE_DEVICE_TABLE(spi, ili9163_id);
drivers/gpu/drm/tiny/ili9225.c +1 -1
index 5bf52a8fd75b..970abe1e9096 100644
@@ -424,7 +424,7 @@ static const struct of_device_id ili9225_of_match[] = {
 MODULE_DEVICE_TABLE(of, ili9225_of_match);
 
 static const struct spi_device_id ili9225_id[] = {
-	{ "v220hf01a-t", 0 },
+	{ .name = "v220hf01a-t" },
 	{ },
 };
 MODULE_DEVICE_TABLE(spi, ili9225_id);
drivers/gpu/drm/tiny/ili9341.c +1 -1
index 003381aa22ea..38d5ed9bc0e9 100644
@@ -227,7 +227,7 @@ static const struct of_device_id ili9341_of_match[] = {
 MODULE_DEVICE_TABLE(of, ili9341_of_match);
 
 static const struct spi_device_id ili9341_id[] = {
-	{ "yx240qv29", 0 },
+	{ .name = "yx240qv29" },
 	{ }
 };
 MODULE_DEVICE_TABLE(spi, ili9341_id);
drivers/gpu/drm/tiny/ili9486.c +3 -3
index c945a9144315..a4b82bbf98f8 100644
@@ -250,9 +250,9 @@ static const struct of_device_id ili9486_of_match[] = {
 MODULE_DEVICE_TABLE(of, ili9486_of_match);
 
 static const struct spi_device_id ili9486_id[] = {
-	{ "ili9486", 0 },
-	{ "rpi-lcd-35", 0 },
-	{ "piscreen", 0 },
+	{ .name = "ili9486" },
+	{ .name = "rpi-lcd-35" },
+	{ .name = "piscreen" },
 	{ }
 };
 MODULE_DEVICE_TABLE(spi, ili9486_id);
drivers/gpu/drm/tiny/mi0283qt.c +1 -1
index b0121e89e2dc..072326ef2e1e 100644
@@ -231,7 +231,7 @@ static const struct of_device_id mi0283qt_of_match[] = {
 MODULE_DEVICE_TABLE(of, mi0283qt_of_match);
 
 static const struct spi_device_id mi0283qt_id[] = {
-	{ "mi0283qt", 0 },
+	{ .name = "mi0283qt" },
 	{ },
 };
 MODULE_DEVICE_TABLE(spi, mi0283qt_id);
drivers/gpu/drm/tiny/panel-mipi-dbi.c +1 -1
index 3f462d79a6d3..ffff6acf7dea 100644
@@ -542,7 +542,7 @@ static const struct of_device_id panel_mipi_dbi_spi_of_match[] = {
 MODULE_DEVICE_TABLE(of, panel_mipi_dbi_spi_of_match);
 
 static const struct spi_device_id panel_mipi_dbi_spi_id[] = {
-	{ "panel-mipi-dbi-spi", 0 },
+	{ .name = "panel-mipi-dbi-spi" },
 	{ },
 };
 MODULE_DEVICE_TABLE(spi, panel_mipi_dbi_spi_id);
drivers/gpu/drm/tiny/pixpaper.c +4 -1
index 2a92a28b40f6..456887546034 100644
@@ -1140,7 +1140,10 @@ static void pixpaper_remove(struct spi_device *spi)
 	drm_atomic_helper_shutdown(&panel->drm);
 }
 
-static const struct spi_device_id pixpaper_ids[] = { { "pixpaper", 0 }, {} };
+static const struct spi_device_id pixpaper_ids[] = {
+	{ .name = "pixpaper" },
+	{ }
+};
 MODULE_DEVICE_TABLE(spi, pixpaper_ids);
 
 static const struct of_device_id pixpaper_dt_ids[] = {
Signature · 1 line
2.56.0.rc1
#4 lore raw

PATCH 4/9 drm: Use designated initializers for spi_device_id arrays

In reply to Uwe Kleine-König

Named initializers are better readable and more robust to changes of the struct definition. This robustness is relevant for a planned change to struct spi_device_id replacing .driver_data by an anonymous union.

---
 drivers/gpu/drm/panel/panel-auo-a030jtn01.c   |  5 ++++-
 .../gpu/drm/panel/panel-ilitek-ili9806e-spi.c |  2 +-
 .../gpu/drm/panel/panel-newvision-nv3052c.c   |  6 +++---
 .../gpu/drm/panel/panel-orisetech-ota5601a.c  |  2 +-
 drivers/gpu/drm/panel/panel-samsung-db7430.c  |  2 +-
 drivers/gpu/drm/panel/panel-samsung-ld9040.c  |  2 +-
 drivers/gpu/drm/panel/panel-sitronix-st7701.c |  2 +-
 .../gpu/drm/panel/panel-sitronix-st7789v.c    |  8 ++++----
 drivers/gpu/drm/panel/panel-tpo-tpg110.c      |  2 +-
 .../gpu/drm/panel/panel-widechips-ws2401.c    |  2 +-
 drivers/gpu/drm/sitronix/st7735r.c            |  4 ++--
 drivers/gpu/drm/sitronix/st7920.c             |  2 +-
 drivers/gpu/drm/tiny/repaper.c                |  8 ++++----
 drivers/gpu/drm/tiny/sharp-memory.c           | 20 +++++++++----------
 14 files changed, 35 insertions(+), 32 deletions(-)
drivers/gpu/drm/panel/panel-auo-a030jtn01.c +4 -1
index d71850b24ffa..defbb49240c2 100644
@@ -278,7 +278,10 @@ static const struct a030jtn01_info a030jtn01_info = {
 };
 
 static const struct spi_device_id a030jtn01_id[] = {
-	{ "a030jtn01", (kernel_ulong_t) &a030jtn01_info },
+	{
+		.name = "a030jtn01",
+		.driver_data = (kernel_ulong_t) &a030jtn01_info,
+	},
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(spi, a030jtn01_id);
drivers/gpu/drm/panel/panel-ilitek-ili9806e-spi.c +1 -1
index 9271c3c89a7f..86da169431f2 100644
@@ -297,7 +297,7 @@ static const struct of_device_id ili9806e_spi_of_match[] = {
 MODULE_DEVICE_TABLE(of, ili9806e_spi_of_match);
 
 static const struct spi_device_id ili9806e_spi_ids[] = {
-	{ "rk050hr345-ct106a", },
+	{ .name = "rk050hr345-ct106a" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(spi, ili9806e_spi_ids);
drivers/gpu/drm/panel/panel-newvision-nv3052c.c +3 -3
index 18130bc14201..40a0aa35da53 100644
@@ -653,9 +653,9 @@ static const struct nv3052c_panel_info wl_355608_a8_panel_info = {
 };
 
 static const struct spi_device_id nv3052c_ids[] = {
-	{ "ltk035c5444t", },
-	{ "fs035vg158", },
-	{ "rg35xx-plus-panel", },
+	{ .name = "ltk035c5444t" },
+	{ .name = "fs035vg158" },
+	{ .name = "rg35xx-plus-panel" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(spi, nv3052c_ids);
drivers/gpu/drm/panel/panel-orisetech-ota5601a.c +1 -1
index 8a608972fc41..3e147fe6f272 100644
@@ -332,7 +332,7 @@ static const struct ota5601a_panel_info gpt3_info = {
 };
 
 static const struct spi_device_id gpt3_id[] = {
-	{ "gpt3", (kernel_ulong_t)&gpt3_info },
+	{ .name = "gpt3", .driver_data = (kernel_ulong_t)&gpt3_info },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(spi, gpt3_id);
drivers/gpu/drm/panel/panel-samsung-db7430.c +1 -1
index a97182f3c990..2a1fd9eb4698 100644
@@ -327,7 +327,7 @@ static const struct of_device_id db7430_match[] = {
 MODULE_DEVICE_TABLE(of, db7430_match);
 
 static const struct spi_device_id db7430_ids[] = {
-	{ "lms397kf04" },
+	{ .name = "lms397kf04" },
 	{ },
 };
 MODULE_DEVICE_TABLE(spi, db7430_ids);
drivers/gpu/drm/panel/panel-samsung-ld9040.c +1 -1
index c7f2241523a0..8589ecb6be86 100644
@@ -401,7 +401,7 @@ static const struct of_device_id ld9040_of_match[] = {
 MODULE_DEVICE_TABLE(of, ld9040_of_match);
 
 static const struct spi_device_id ld9040_ids[] = {
-	{ "ld9040", },
+	{ .name = "ld9040" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(spi, ld9040_ids);
drivers/gpu/drm/panel/panel-sitronix-st7701.c +1 -1
index 31c56eadda12..0db2018a8018 100644
@@ -1397,7 +1397,7 @@ static const struct of_device_id st7701_spi_of_match[] = {
 MODULE_DEVICE_TABLE(of, st7701_spi_of_match);
 
 static const struct spi_device_id st7701_spi_ids[] = {
-	{ "rg28xx-panel" },
+	{ .name = "rg28xx-panel" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(spi, st7701_spi_ids);
drivers/gpu/drm/panel/panel-sitronix-st7789v.c +4 -4
index da6ed31d151e..fb6cd9081d3c 100644
@@ -664,10 +664,10 @@ static void st7789v_remove(struct spi_device *spi)
 }
 
 static const struct spi_device_id st7789v_spi_id[] = {
-	{ "st7789v", (unsigned long) &default_panel },
-	{ "t28cp45tn89-v17", (unsigned long) &t28cp45tn89_panel },
-	{ "et028013dma", (unsigned long) &et028013dma_panel },
-	{ "jt240mhqs-hwt-ek-e3", (unsigned long) &jt240mhqs_hwt_ek_e3_panel },
+	{ .name = "st7789v", .driver_data = (unsigned long) &default_panel },
+	{ .name = "t28cp45tn89-v17", .driver_data = (unsigned long) &t28cp45tn89_panel },
+	{ .name = "et028013dma", .driver_data = (unsigned long) &et028013dma_panel },
+	{ .name = "jt240mhqs-hwt-ek-e3", .driver_data = (unsigned long) &jt240mhqs_hwt_ek_e3_panel },
 	{ }
 };
 MODULE_DEVICE_TABLE(spi, st7789v_spi_id);
drivers/gpu/drm/panel/panel-tpo-tpg110.c +1 -1
index 0beba5c08956..8fb3a94f6cd9 100644
@@ -465,7 +465,7 @@ static const struct of_device_id tpg110_match[] = {
 MODULE_DEVICE_TABLE(of, tpg110_match);
 
 static const struct spi_device_id tpg110_ids[] = {
-	{ "tpg110" },
+	{ .name = "tpg110" },
 	{ },
 };
 MODULE_DEVICE_TABLE(spi, tpg110_ids);
drivers/gpu/drm/panel/panel-widechips-ws2401.c +1 -1
index dd74610bd2eb..4430c71feb88 100644
@@ -425,7 +425,7 @@ static const struct of_device_id ws2401_match[] = {
 MODULE_DEVICE_TABLE(of, ws2401_match);
 
 static const struct spi_device_id ws2401_ids[] = {
-	{ "lms380kf01" },
+	{ .name = "lms380kf01" },
 	{ },
 };
 MODULE_DEVICE_TABLE(spi, ws2401_ids);
drivers/gpu/drm/sitronix/st7735r.c +2 -2
index bd763871dca0..f45bca9f3bc2 100644
@@ -226,8 +226,8 @@ static const struct of_device_id st7735r_of_match[] = {
 MODULE_DEVICE_TABLE(of, st7735r_of_match);
 
 static const struct spi_device_id st7735r_id[] = {
-	{ "jd-t18003-t01", (uintptr_t)&jd_t18003_t01_cfg },
-	{ "rh128128t", (uintptr_t)&rh128128t_cfg },
+	{ .name = "jd-t18003-t01", .driver_data = (uintptr_t)&jd_t18003_t01_cfg },
+	{ .name = "rh128128t", .driver_data = (uintptr_t)&rh128128t_cfg },
 	{ },
 };
 MODULE_DEVICE_TABLE(spi, st7735r_id);
drivers/gpu/drm/sitronix/st7920.c +1 -1
index 2f2c808e783b..1a5250ce45e2 100644
@@ -224,7 +224,7 @@ MODULE_DEVICE_TABLE(of, st7920_of_match);
  */
 static const struct spi_device_id st7920_spi_id[] = {
 	/* st7920 family */
-	{ "st7920",  0 },
+	{ .name = "st7920" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(spi, st7920_spi_id);
drivers/gpu/drm/tiny/repaper.c +4 -4
index 25e6a7a4affc..cebd48addc40 100644
@@ -994,10 +994,10 @@ static const struct of_device_id repaper_of_match[] = {
 MODULE_DEVICE_TABLE(of, repaper_of_match);
 
 static const struct spi_device_id repaper_id[] = {
-	{ "e1144cs021", E1144CS021 },
-	{ "e1190cs021", E1190CS021 },
-	{ "e2200cs021", E2200CS021 },
-	{ "e2271cs021", E2271CS021 },
+	{ .name = "e1144cs021", .driver_data = E1144CS021 },
+	{ .name = "e1190cs021", .driver_data = E1190CS021 },
+	{ .name = "e2200cs021", .driver_data = E2200CS021 },
+	{ .name = "e2271cs021", .driver_data = E2271CS021 },
 	{ },
 };
 MODULE_DEVICE_TABLE(spi, repaper_id);
drivers/gpu/drm/tiny/sharp-memory.c +10 -10
index b948e44544d6..861dd81a8e5b 100644
@@ -420,16 +420,16 @@ static const struct drm_display_mode sharp_memory_ls044q7dh01_mode = {
 };
 
 static const struct spi_device_id sharp_memory_ids[] = {
-	{"ls010b7dh04", (kernel_ulong_t)&sharp_memory_ls010b7dh04_mode},
-	{"ls011b7dh03", (kernel_ulong_t)&sharp_memory_ls011b7dh03_mode},
-	{"ls012b7dd01", (kernel_ulong_t)&sharp_memory_ls012b7dd01_mode},
-	{"ls013b7dh03", (kernel_ulong_t)&sharp_memory_ls013b7dh03_mode},
-	{"ls013b7dh05", (kernel_ulong_t)&sharp_memory_ls013b7dh05_mode},
-	{"ls018b7dh02", (kernel_ulong_t)&sharp_memory_ls018b7dh02_mode},
-	{"ls027b7dh01", (kernel_ulong_t)&sharp_memory_ls027b7dh01_mode},
-	{"ls027b7dh01a", (kernel_ulong_t)&sharp_memory_ls027b7dh01_mode},
-	{"ls032b7dd02", (kernel_ulong_t)&sharp_memory_ls032b7dd02_mode},
-	{"ls044q7dh01", (kernel_ulong_t)&sharp_memory_ls044q7dh01_mode},
+	{ .name = "ls010b7dh04", .driver_data = (kernel_ulong_t)&sharp_memory_ls010b7dh04_mode },
+	{ .name = "ls011b7dh03", .driver_data = (kernel_ulong_t)&sharp_memory_ls011b7dh03_mode },
+	{ .name = "ls012b7dd01", .driver_data = (kernel_ulong_t)&sharp_memory_ls012b7dd01_mode },
+	{ .name = "ls013b7dh03", .driver_data = (kernel_ulong_t)&sharp_memory_ls013b7dh03_mode },
+	{ .name = "ls013b7dh05", .driver_data = (kernel_ulong_t)&sharp_memory_ls013b7dh05_mode },
+	{ .name = "ls018b7dh02", .driver_data = (kernel_ulong_t)&sharp_memory_ls018b7dh02_mode },
+	{ .name = "ls027b7dh01", .driver_data = (kernel_ulong_t)&sharp_memory_ls027b7dh01_mode },
+	{ .name = "ls027b7dh01a", .driver_data = (kernel_ulong_t)&sharp_memory_ls027b7dh01_mode },
+	{ .name = "ls032b7dd02", .driver_data = (kernel_ulong_t)&sharp_memory_ls032b7dd02_mode },
+	{ .name = "ls044q7dh01", .driver_data = (kernel_ulong_t)&sharp_memory_ls044q7dh01_mode },
 	{},
 };
 MODULE_DEVICE_TABLE(spi, sharp_memory_ids);
Signature · 1 line
2.56.0.rc1
#5 lore raw

PATCH 5/9 drm: Use designated initializers for i2c_device_id arrays

In reply to Uwe Kleine-König

Named initializers are better readable and more robust to changes of the struct definition. This robustness is relevant for a planned change to struct i2c_device_id replacing .driver_data by an anonymous union.

---
 drivers/gpu/drm/nouveau/dispnv04/i2c/ch7006_drv.c | 2 +-
 drivers/gpu/drm/nouveau/dispnv04/i2c/sil164_drv.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/nouveau/dispnv04/i2c/ch7006_drv.c +1 -1
index 976ed59a86e4..96dabdb38c4b 100644
@@ -486,7 +486,7 @@ static int ch7006_encoder_init(struct i2c_client *client,
 }
 
 static const struct i2c_device_id ch7006_ids[] = {
-	{ "ch7006" },
+	{ .name = "ch7006" },
 	{ }
 };
 MODULE_DEVICE_TABLE(i2c, ch7006_ids);
drivers/gpu/drm/nouveau/dispnv04/i2c/sil164_drv.c +1 -1
index 7f402b901977..2324507eb5f3 100644
@@ -414,7 +414,7 @@ sil164_encoder_init(struct i2c_client *client,
 }
 
 static const struct i2c_device_id sil164_ids[] = {
-	{ "sil164" },
+	{ .name = "sil164" },
 	{ }
 };
 MODULE_DEVICE_TABLE(i2c, sil164_ids);
Signature · 1 line
2.56.0.rc1
#6 lore raw

PATCH 6/9 drm: Use designated initializers for of_device_id arrays

In reply to Uwe Kleine-König

Named initializers are better readable and more robust to changes of the struct definition. This robustness is relevant for a planned change to struct of_device_id replacing .data by an anonymous union.

---
 drivers/gpu/drm/panel/panel-dsi-cm.c          |  4 ++--
 drivers/gpu/drm/panel/panel-ilitek-ili9881c.c |  4 ++--
 drivers/gpu/drm/tiny/sharp-memory.c           | 20 +++++++++----------
 drivers/gpu/drm/vc4/vc4_dsi.c                 |  6 +++---
 4 files changed, 17 insertions(+), 17 deletions(-)
drivers/gpu/drm/panel/panel-dsi-cm.c +2 -2
index ae6e9ffc46cb..99ccf3badde7 100644
@@ -628,8 +628,8 @@ static const struct dsic_panel_data droid4_data = {
 
 static const struct of_device_id dsicm_of_match[] = {
 	{ .compatible = "tpo,taal", .data = &taal_data },
-	{ .compatible = "nokia,himalaya", &himalaya_data },
-	{ .compatible = "motorola,droid4-panel", &droid4_data },
+	{ .compatible = "nokia,himalaya", .data = &himalaya_data },
+	{ .compatible = "motorola,droid4-panel", .data = &droid4_data },
 	{},
 };
 
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +2 -2
index acc560dc5ea5..bdbe1fe9c879 100644
@@ -2924,8 +2924,8 @@ static const struct of_device_id ili9881c_of_match[] = {
 	{ .compatible = "wanchanglong,w552946aba", .data = &w552946aba_desc },
 	{ .compatible = "waveshare,7.0-dsi-touch-a", .data = &waveshare_7inch_a_desc },
 	{ .compatible = "ampire,am8001280g", .data = &am8001280g_desc },
-	{ .compatible = "raspberrypi,dsi-5inch", &rpi_5inch_desc },
-	{ .compatible = "raspberrypi,dsi-7inch", &rpi_7inch_desc },
+	{ .compatible = "raspberrypi,dsi-5inch", .data = &rpi_5inch_desc },
+	{ .compatible = "raspberrypi,dsi-7inch", .data = &rpi_7inch_desc },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, ili9881c_of_match);
drivers/gpu/drm/tiny/sharp-memory.c +10 -10
index 861dd81a8e5b..e3367e433a2e 100644
@@ -435,16 +435,16 @@ static const struct spi_device_id sharp_memory_ids[] = {
 MODULE_DEVICE_TABLE(spi, sharp_memory_ids);
 
 static const struct of_device_id sharp_memory_of_match[] = {
-	{.compatible = "sharp,ls010b7dh04", &sharp_memory_ls010b7dh04_mode},
-	{.compatible = "sharp,ls011b7dh03", &sharp_memory_ls011b7dh03_mode},
-	{.compatible = "sharp,ls012b7dd01", &sharp_memory_ls012b7dd01_mode},
-	{.compatible = "sharp,ls013b7dh03", &sharp_memory_ls013b7dh03_mode},
-	{.compatible = "sharp,ls013b7dh05", &sharp_memory_ls013b7dh05_mode},
-	{.compatible = "sharp,ls018b7dh02", &sharp_memory_ls018b7dh02_mode},
-	{.compatible = "sharp,ls027b7dh01", &sharp_memory_ls027b7dh01_mode},
-	{.compatible = "sharp,ls027b7dh01a", &sharp_memory_ls027b7dh01_mode},
-	{.compatible = "sharp,ls032b7dd02", &sharp_memory_ls032b7dd02_mode},
-	{.compatible = "sharp,ls044q7dh01", &sharp_memory_ls044q7dh01_mode},
+	{ .compatible = "sharp,ls010b7dh04", .data = &sharp_memory_ls010b7dh04_mode },
+	{ .compatible = "sharp,ls011b7dh03", .data = &sharp_memory_ls011b7dh03_mode },
+	{ .compatible = "sharp,ls012b7dd01", .data = &sharp_memory_ls012b7dd01_mode },
+	{ .compatible = "sharp,ls013b7dh03", .data = &sharp_memory_ls013b7dh03_mode },
+	{ .compatible = "sharp,ls013b7dh05", .data = &sharp_memory_ls013b7dh05_mode },
+	{ .compatible = "sharp,ls018b7dh02", .data = &sharp_memory_ls018b7dh02_mode },
+	{ .compatible = "sharp,ls027b7dh01", .data = &sharp_memory_ls027b7dh01_mode },
+	{ .compatible = "sharp,ls027b7dh01a", .data = &sharp_memory_ls027b7dh01_mode },
+	{ .compatible = "sharp,ls032b7dd02", .data = &sharp_memory_ls032b7dd02_mode },
+	{ .compatible = "sharp,ls044q7dh01", .data = &sharp_memory_ls044q7dh01_mode },
 	{},
 };
 MODULE_DEVICE_TABLE(of, sharp_memory_of_match);
drivers/gpu/drm/vc4/vc4_dsi.c +3 -3
index ec008f766dd5..3e231f875725 100644
@@ -1450,9 +1450,9 @@ static const struct vc4_dsi_variant bcm2835_dsi1_variant = {
 };
 
 static const struct of_device_id vc4_dsi_dt_match[] = {
-	{ .compatible = "brcm,bcm2711-dsi1", &bcm2711_dsi1_variant },
-	{ .compatible = "brcm,bcm2835-dsi0", &bcm2835_dsi0_variant },
-	{ .compatible = "brcm,bcm2835-dsi1", &bcm2835_dsi1_variant },
+	{ .compatible = "brcm,bcm2711-dsi1", .data = &bcm2711_dsi1_variant },
+	{ .compatible = "brcm,bcm2835-dsi0", .data = &bcm2835_dsi0_variant },
+	{ .compatible = "brcm,bcm2835-dsi1", .data = &bcm2835_dsi1_variant },
 	{}
 };
 
Signature · 1 line
2.56.0.rc1
maintainer Reviewed-by on v1 6/9
#7 lore raw

Re: [PATCH v1 6/9] drm: Use designated initializers for of_device_id arrays

Quoted 5 lines · Uwe Kleine-König

Named initializers are better readable and more robust to changes of the struct definition. This robustness is relevant for a planned change to struct of_device_id replacing .data by an anonymous union.

Best regards,
- Maíra

Quoted 85 lines
---
  drivers/gpu/drm/panel/panel-dsi-cm.c          |  4 ++--
  drivers/gpu/drm/panel/panel-ilitek-ili9881c.c |  4 ++--
  drivers/gpu/drm/tiny/sharp-memory.c           | 20 +++++++++----------
  drivers/gpu/drm/vc4/vc4_dsi.c                 |  6 +++---
  4 files changed, 17 insertions(+), 17 deletions(-)
drivers/gpu/drm/panel/panel-dsi-cm.c +2 -2
index ae6e9ffc46cb..99ccf3badde7 100644
@@ -628,8 +628,8 @@ static const struct dsic_panel_data droid4_data = {
 
  static const struct of_device_id dsicm_of_match[] = {
  	{ .compatible = "tpo,taal", .data = &taal_data },
-	{ .compatible = "nokia,himalaya", &himalaya_data },
-	{ .compatible = "motorola,droid4-panel", &droid4_data },
+	{ .compatible = "nokia,himalaya", .data = &himalaya_data },
+	{ .compatible = "motorola,droid4-panel", .data = &droid4_data },
  	{},
  };
 
drivers/gpu/drm/panel/panel-ilitek-ili9881c.c +2 -2
index acc560dc5ea5..bdbe1fe9c879 100644
@@ -2924,8 +2924,8 @@ static const struct of_device_id ili9881c_of_match[] = {
  	{ .compatible = "wanchanglong,w552946aba", .data = &w552946aba_desc },
  	{ .compatible = "waveshare,7.0-dsi-touch-a", .data = &waveshare_7inch_a_desc },
  	{ .compatible = "ampire,am8001280g", .data = &am8001280g_desc },
-	{ .compatible = "raspberrypi,dsi-5inch", &rpi_5inch_desc },
-	{ .compatible = "raspberrypi,dsi-7inch", &rpi_7inch_desc },
+	{ .compatible = "raspberrypi,dsi-5inch", .data = &rpi_5inch_desc },
+	{ .compatible = "raspberrypi,dsi-7inch", .data = &rpi_7inch_desc },
  	{ }
  };
  MODULE_DEVICE_TABLE(of, ili9881c_of_match);
drivers/gpu/drm/tiny/sharp-memory.c +10 -10
index 861dd81a8e5b..e3367e433a2e 100644
@@ -435,16 +435,16 @@ static const struct spi_device_id sharp_memory_ids[] = {
  MODULE_DEVICE_TABLE(spi, sharp_memory_ids);
 
  static const struct of_device_id sharp_memory_of_match[] = {
-	{.compatible = "sharp,ls010b7dh04", &sharp_memory_ls010b7dh04_mode},
-	{.compatible = "sharp,ls011b7dh03", &sharp_memory_ls011b7dh03_mode},
-	{.compatible = "sharp,ls012b7dd01", &sharp_memory_ls012b7dd01_mode},
-	{.compatible = "sharp,ls013b7dh03", &sharp_memory_ls013b7dh03_mode},
-	{.compatible = "sharp,ls013b7dh05", &sharp_memory_ls013b7dh05_mode},
-	{.compatible = "sharp,ls018b7dh02", &sharp_memory_ls018b7dh02_mode},
-	{.compatible = "sharp,ls027b7dh01", &sharp_memory_ls027b7dh01_mode},
-	{.compatible = "sharp,ls027b7dh01a", &sharp_memory_ls027b7dh01_mode},
-	{.compatible = "sharp,ls032b7dd02", &sharp_memory_ls032b7dd02_mode},
-	{.compatible = "sharp,ls044q7dh01", &sharp_memory_ls044q7dh01_mode},
+	{ .compatible = "sharp,ls010b7dh04", .data = &sharp_memory_ls010b7dh04_mode },
+	{ .compatible = "sharp,ls011b7dh03", .data = &sharp_memory_ls011b7dh03_mode },
+	{ .compatible = "sharp,ls012b7dd01", .data = &sharp_memory_ls012b7dd01_mode },
+	{ .compatible = "sharp,ls013b7dh03", .data = &sharp_memory_ls013b7dh03_mode },
+	{ .compatible = "sharp,ls013b7dh05", .data = &sharp_memory_ls013b7dh05_mode },
+	{ .compatible = "sharp,ls018b7dh02", .data = &sharp_memory_ls018b7dh02_mode },
+	{ .compatible = "sharp,ls027b7dh01", .data = &sharp_memory_ls027b7dh01_mode },
+	{ .compatible = "sharp,ls027b7dh01a", .data = &sharp_memory_ls027b7dh01_mode },
+	{ .compatible = "sharp,ls032b7dd02", .data = &sharp_memory_ls032b7dd02_mode },
+	{ .compatible = "sharp,ls044q7dh01", .data = &sharp_memory_ls044q7dh01_mode },
  	{},
  };
  MODULE_DEVICE_TABLE(of, sharp_memory_of_match);
drivers/gpu/drm/vc4/vc4_dsi.c +3 -3
index ec008f766dd5..3e231f875725 100644
@@ -1450,9 +1450,9 @@ static const struct vc4_dsi_variant bcm2835_dsi1_variant = {
  };
 
  static const struct of_device_id vc4_dsi_dt_match[] = {
-	{ .compatible = "brcm,bcm2711-dsi1", &bcm2711_dsi1_variant },
-	{ .compatible = "brcm,bcm2835-dsi0", &bcm2835_dsi0_variant },
-	{ .compatible = "brcm,bcm2835-dsi1", &bcm2835_dsi1_variant },
+	{ .compatible = "brcm,bcm2711-dsi1", .data = &bcm2711_dsi1_variant },
+	{ .compatible = "brcm,bcm2835-dsi0", .data = &bcm2835_dsi0_variant },
+	{ .compatible = "brcm,bcm2835-dsi1", .data = &bcm2835_dsi1_variant },
  	{}
  };
 
#8 lore raw

PATCH 7/9 drm: Use an empty initializer as pci_device_id array terminator

In reply to Uwe Kleine-König

Rely on the default initialisation provided by the compiler instead of explicitly assigning zeros.

---
 drivers/gpu/drm/ast/ast_drv.c                   | 2 +-
 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/ast/ast_drv.c +1 -1
index ba6cf5fa901c..effe289a6921 100644
@@ -186,7 +186,7 @@ static const struct drm_driver ast_driver = {
 static const struct pci_device_id ast_pciidlist[] = {
 	AST_VGA_DEVICE(PCI_CHIP_AST2000, NULL),
 	AST_VGA_DEVICE(PCI_CHIP_AST2100, NULL),
-	{0, 0, 0},
+	{ }
 };
 
 MODULE_DEVICE_TABLE(pci, ast_pciidlist);
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c +1 -1
index 602930964e93..b80f1d4e83b4 100644
@@ -491,7 +491,7 @@ static void hibmc_pci_shutdown(struct pci_dev *pdev)
 
 static const struct pci_device_id hibmc_pci_table[] = {
 	{ PCI_VDEVICE(HUAWEI, 0x1711) },
-	{0,}
+	{ }
 };
 
 static struct pci_driver hibmc_pci_driver = {
Signature · 1 line
2.56.0.rc1
#9 lore raw

PATCH 8/9 drm/pl111: Use an empty initializer as amba_id array terminator

In reply to Uwe Kleine-König

Rely on the default initialisation provided by the compiler instead of explicitly assigning zeros.

---
 drivers/gpu/drm/pl111/pl111_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/pl111/pl111_drv.c +1 -1
index ab8af4cacf10..d8e7b7c29e4b 100644
@@ -415,7 +415,7 @@ static const struct amba_id pl111_id_table[] = {
 		.mask = 0x000fffff,
 		.data = (void *)&pl111_variant,
 	},
-	{0, 0},
+	{ }
 };
 MODULE_DEVICE_TABLE(amba, pl111_id_table);
 
Signature · 1 line
2.56.0.rc1
maintainer Reviewed-by on v1 8/9
#10 lore raw

Re: [PATCH v1 8/9] drm/pl111: Use an empty initializer as amba_id array terminator

Quoted 4 lines · Uwe Kleine-König

Rely on the default initialisation provided by the compiler instead of explicitly assigning zeros.

Tell me if I should just apply the patch, I'm just assuming you have DRM commit rights.

Yours,
Linus Walleij

#11 lore raw

Re: [PATCH v1 8/9] drm/pl111: Use an empty initializer as amba_id array terminator

Hello Linus,

Quoted 6 lines · Linus Walleij
Quoted 3 lines · Uwe Kleine-König

Rely on the default initialisation provided by the compiler instead of explicitly assigning zeros.

Quoted 6 lines
Quoted 1 line

Tell me if I should just apply the patch, I'm just assuming you have DRM commit rights.

Thanks. up to now I always declined when I was offered commit rights for drm-misc :-)

I suggest to not apply it yet, in the hope that the series is picked up completely by David or Simona.

Best regards
Uwe

#12 lore raw

PATCH 9/9 drm: Unify coding style for *_device_id arrays

In reply to Uwe Kleine-König

These arrays already mostly match the most used and generally recommended coding style. That is:

- list terminators in a single line;
- no comma after the list terminator;
- a comma after an initializer if (and only if) the closing } is not directly following;
- a space after an opening { and before a closing }, a single space in the list terminator (unless there is a comment);
- proper tab indentation for multi-line initializers;

Adapt the offenders accordingly.

---
 drivers/gpu/drm/adp/adp-mipi.c                |   4 +-
 drivers/gpu/drm/adp/adp_drv.c                 |   4 +-
 .../gpu/drm/arm/display/komeda/komeda_drv.c   |   8 +-
 drivers/gpu/drm/arm/hdlcd_drv.c               |   4 +-
 drivers/gpu/drm/arm/malidp_drv.c              |   8 +-
 drivers/gpu/drm/armada/armada_crtc.c          |   2 +-
 drivers/gpu/drm/aspeed/aspeed_gfx_drv.c       |   2 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c  |   4 +-
 .../drm/bridge/analogix/analogix-anx6345.c    |   4 +-
 .../drm/bridge/analogix/analogix-anx78xx.c    |   2 +-
 drivers/gpu/drm/bridge/analogix/anx7625.c     |   4 +-
 drivers/gpu/drm/bridge/chipone-icn6211.c      |   2 +-
 drivers/gpu/drm/bridge/chrontel-ch7033.c      |   2 +-
 drivers/gpu/drm/bridge/display-connector.c    |   2 +-
 drivers/gpu/drm/bridge/fsl-ldb.c              |  23 +-
 drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c  |   7 +-
 .../drm/bridge/imx/imx8qxp-pixel-combiner.c   |   4 +-
 .../gpu/drm/bridge/imx/imx8qxp-pixel-link.c   |   4 +-
 drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c  |   2 +-
 drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c   |   2 +-
 drivers/gpu/drm/bridge/imx/imx93-pdfc.c       |   4 +-
 drivers/gpu/drm/bridge/ite-it6263.c           |   2 +-
 drivers/gpu/drm/bridge/lontium-lt8912b.c      |   4 +-
 drivers/gpu/drm/bridge/lontium-lt9211.c       |   2 +-
 drivers/gpu/drm/bridge/lvds-codec.c           |   2 +-
 .../bridge/megachips-stdpxxxx-ge-b850v3-fw.c  |   4 +-
 drivers/gpu/drm/bridge/microchip-lvds.c       |   6 +-
 drivers/gpu/drm/bridge/nwl-dsi.c              |   2 +-
 drivers/gpu/drm/bridge/nxp-ptn3460.c          |   2 +-
 drivers/gpu/drm/bridge/parade-ps8622.c        |   6 +-
 drivers/gpu/drm/bridge/sii902x.c              |   2 +-
 drivers/gpu/drm/bridge/sii9234.c              |   2 +-
 drivers/gpu/drm/bridge/sil-sii8620.c          |   2 +-
 drivers/gpu/drm/bridge/tc358767.c             |   2 +-
 drivers/gpu/drm/bridge/tc358768.c             |   4 +-
 drivers/gpu/drm/bridge/tc358775.c             |   4 +-
 drivers/gpu/drm/bridge/tda998x_drv.c          |   2 +-
 drivers/gpu/drm/bridge/th1520-dw-hdmi.c       |   2 +-
 drivers/gpu/drm/bridge/thc63lvd1024.c         |   4 +-
 drivers/gpu/drm/bridge/ti-sn65dsi83.c         |   2 +-
 drivers/gpu/drm/bridge/ti-sn65dsi86.c         |   4 +-
 drivers/gpu/drm/bridge/ti-tfp410.c            |   2 +-
 drivers/gpu/drm/bridge/ti-tpd12s015.c         |   4 +-
 drivers/gpu/drm/bridge/waveshare-dsi.c        |   4 +-
 drivers/gpu/drm/etnaviv/etnaviv_gpu.c         |   2 +-
 drivers/gpu/drm/exynos/exynos5433_drm_decon.c |   6 +-
 drivers/gpu/drm/exynos/exynos7_drm_decon.c    |   2 +-
 drivers/gpu/drm/exynos/exynos_dp.c            |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_fimc.c      |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_fimd.c      |  33 +-
 drivers/gpu/drm/exynos/exynos_drm_g2d.c       |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_gsc.c       |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_rotator.c   |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_scaler.c    |   2 +-
 drivers/gpu/drm/exynos/exynos_hdmi.c          |   5 +-
 drivers/gpu/drm/exynos/exynos_mixer.c         |  15 +-
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c     |   2 +-
 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c  |   2 +-
 .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c   |   7 +-
 .../drm/i915/display/intel_display_device.c   |   2 +-
 .../gpu/drm/i915/display/intel_lpe_audio.c    |   6 +-
 drivers/gpu/drm/i915/i915_pci.c               |   2 +-
 drivers/gpu/drm/imagination/pvr_drv.c         |   2 +-
 drivers/gpu/drm/imx/dc/dc-drv.c               |   2 +-
 drivers/gpu/drm/imx/dc/dc-ic.c                |   2 +-
 drivers/gpu/drm/imx/dc/dc-pe.c                |   2 +-
 drivers/gpu/drm/imx/dcss/dcss-drv.c           |   4 +-
 drivers/gpu/drm/imx/ipuv3/dw_hdmi-imx.c       |  11 +-
 drivers/gpu/drm/imx/ipuv3/imx-drm-core.c      |   4 +-
 drivers/gpu/drm/imx/ipuv3/imx-ldb.c           |   4 +-
 drivers/gpu/drm/imx/ipuv3/imx-tve.c           |   2 +-
 drivers/gpu/drm/imx/ipuv3/parallel-display.c  |   2 +-
 drivers/gpu/drm/ingenic/ingenic-drm-drv.c     |   2 +-
 drivers/gpu/drm/ingenic/ingenic-dw-hdmi.c     |   2 +-
 drivers/gpu/drm/ingenic/ingenic-ipu.c         |   2 +-
 drivers/gpu/drm/kmb/kmb_drv.c                 |   4 +-
 drivers/gpu/drm/lima/lima_drv.c               |   2 +-
 drivers/gpu/drm/logicvc/logicvc_drm.c         |   2 +-
 drivers/gpu/drm/mcde/mcde_drv.c               |   2 +-
 drivers/gpu/drm/mcde/mcde_dsi.c               |   2 +-
 drivers/gpu/drm/mediatek/mtk_cec.c            |   4 +-
 drivers/gpu/drm/mediatek/mtk_disp_ccorr.c     |  14 +-
 drivers/gpu/drm/mediatek/mtk_disp_color.c     |  20 +-
 drivers/gpu/drm/mediatek/mtk_disp_gamma.c     |  20 +-
 drivers/gpu/drm/mediatek/mtk_disp_merge.c     |   4 +-
 drivers/gpu/drm/mediatek/mtk_disp_ovl.c       |  50 ++-
 drivers/gpu/drm/mediatek/mtk_disp_rdma.c      |  26 +-
 drivers/gpu/drm/mediatek/mtk_dp.c             |   2 +-
 drivers/gpu/drm/mediatek/mtk_dpi.c            |   2 +-
 drivers/gpu/drm/mediatek/mtk_drm_drv.c        | 395 +++++++++++-------
 drivers/gpu/drm/mediatek/mtk_ethdr.c          |   4 +-
 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c       |   4 +-
 drivers/gpu/drm/mediatek/mtk_mdp_rdma.c       |   4 +-
 drivers/gpu/drm/meson/meson_drv.c             |  28 +-
 drivers/gpu/drm/meson/meson_dw_hdmi.c         |  24 +-
 drivers/gpu/drm/meson/meson_dw_mipi_dsi.c     |   2 +-
 drivers/gpu/drm/msm/adreno/adreno_device.c    |   2 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c       |  70 ++--
 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c      |   6 +-
 drivers/gpu/drm/msm/dp/dp_display.c           |   2 +-
 drivers/gpu/drm/msm/dsi/dsi.c                 |   2 +-
 drivers/gpu/drm/msm/hdmi/hdmi.c               |   2 +-
 drivers/gpu/drm/msm/hdmi/hdmi_phy.c           |  38 +-
 drivers/gpu/drm/msm/msm_drv.c                 |   2 +-
 drivers/gpu/drm/msm/msm_mdss.c                |   2 +-
 drivers/gpu/drm/mxsfb/mxsfb_drv.c             |   6 +-
 drivers/gpu/drm/nouveau/nouveau_drm.c         |   2 +-
 drivers/gpu/drm/omapdrm/dss/dispc.c           |   2 +-
 drivers/gpu/drm/omapdrm/dss/dsi.c             |   8 +-
 drivers/gpu/drm/omapdrm/dss/dss.c             |   2 +-
 drivers/gpu/drm/omapdrm/dss/hdmi4.c           |   4 +-
 drivers/gpu/drm/omapdrm/dss/hdmi5.c           |   6 +-
 drivers/gpu/drm/omapdrm/dss/venc.c            |   8 +-
 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c      |   2 +-
 drivers/gpu/drm/panel/panel-arm-versatile.c   |   4 +-
 drivers/gpu/drm/panel/panel-boe-himax8279d.c  |   4 +-
 .../drm/panel/panel-boe-th101mb31ig002-28a.c  |   4 +-
 .../gpu/drm/panel/panel-boe-tv101wum-nl6.c    |  47 ++-
 drivers/gpu/drm/panel/panel-dsi-cm.c          |   2 +-
 drivers/gpu/drm/panel/panel-edp.c             |   5 +-
 .../gpu/drm/panel/panel-feixin-k101-im2ba02.c |   2 +-
 .../drm/panel/panel-feiyang-fy07024di26a30d.c |   2 +-
 .../gpu/drm/panel/panel-focaltech-ota7290b.c  |   4 +-
 drivers/gpu/drm/panel/panel-himax-hx83102.c   |  47 ++-
 drivers/gpu/drm/panel/panel-ilitek-ili9882t.c |  17 +-
 drivers/gpu/drm/panel/panel-innolux-p079zca.c |  11 +-
 .../gpu/drm/panel/panel-jadard-jd9365da-h3.c  |  30 +-
 drivers/gpu/drm/panel/panel-jdi-lpm102a188a.c |   2 +-
 .../gpu/drm/panel/panel-jdi-lt070me05000.c    |   2 +-
 drivers/gpu/drm/panel/panel-khadas-ts050.c    |   4 +-
 .../drm/panel/panel-kingdisplay-kd097d04.c    |   2 +-
 drivers/gpu/drm/panel/panel-lg-lb035q02.c     |   4 +-
 drivers/gpu/drm/panel/panel-lg-sw43408.c      |   4 +-
 .../gpu/drm/panel/panel-lincolntech-lcd197.c  |   2 +-
 drivers/gpu/drm/panel/panel-lvds.c            |   4 +-
 .../drm/panel/panel-magnachip-d53e6ea8966.c   |   2 +-
 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c  |   4 +-
 drivers/gpu/drm/panel/panel-novatek-nt35950.c |   2 +-
 drivers/gpu/drm/panel/panel-novatek-nt36523.c |   2 +-
 .../gpu/drm/panel/panel-novatek-nt36672a.c    |   2 +-
 drivers/gpu/drm/panel/panel-novatek-nt36850.c |   2 +-
 drivers/gpu/drm/panel/panel-novatek-nt37801.c |   2 +-
 .../drm/panel/panel-osd-osd101t2587-53ts.c    |   5 +-
 .../drm/panel/panel-panasonic-vvx10f034n00.c  |   2 +-
 drivers/gpu/drm/panel/panel-raydium-rm67191.c |   2 +-
 drivers/gpu/drm/panel/panel-renesas-r63419.c  |   2 +-
 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c  |   2 +-
 .../gpu/drm/panel/panel-samsung-atna33xc20.c  |   2 +-
 drivers/gpu/drm/panel/panel-samsung-db7430.c  |   6 +-
 drivers/gpu/drm/panel/panel-samsung-s6d27a1.c |   4 +-
 drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c |   6 +-
 .../panel/panel-samsung-s6e88a0-ams427ap24.c  |   2 +-
 .../panel/panel-samsung-s6e88a0-ams452ef01.c  |   2 +-
 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c   |   5 +-
 .../gpu/drm/panel/panel-sharp-lq101r1sx01.c   |   2 +-
 .../gpu/drm/panel/panel-sharp-ls037v7dw01.c   |   4 +-
 .../gpu/drm/panel/panel-sharp-ls043t1le01.c   |   2 +-
 drivers/gpu/drm/panel/panel-simple.c          |  70 ++--
 .../gpu/drm/panel/panel-sitronix-st7789v.c    |  18 +-
 drivers/gpu/drm/panel/panel-sony-acx565akm.c  |   4 +-
 .../drm/panel/panel-startek-kd070fhfid015.c   |   2 +-
 drivers/gpu/drm/panel/panel-summit.c          |   2 +-
 drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c  |   2 +-
 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c  |   6 +-
 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c  |   4 +-
 drivers/gpu/drm/panel/panel-tpo-tpg110.c      |   6 +-
 drivers/gpu/drm/panel/panel-visionox-r66451.c |   2 +-
 .../gpu/drm/panel/panel-visionox-rm69299.c    |  12 +-
 .../gpu/drm/panel/panel-widechips-ws2401.c    |   6 +-
 drivers/gpu/drm/panfrost/panfrost_drv.c       |  36 +-
 drivers/gpu/drm/panthor/panthor_drv.c         |   4 +-
 drivers/gpu/drm/pl111/pl111_versatile.c       |   4 +-
 drivers/gpu/drm/qxl/qxl_drv.c                 |   6 +-
 drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c    |   6 +-
 drivers/gpu/drm/renesas/rcar-du/rcar_dsc.c    |   2 +-
 .../gpu/drm/renesas/rcar-du/rcar_dw_hdmi.c    |   2 +-
 .../gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c    |   6 +-
 .../gpu/drm/rockchip/analogix_dp-rockchip.c   |  12 +-
 drivers/gpu/drm/rockchip/cdn-dp-core.c        |   8 +-
 .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   |  32 +-
 .../gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c  |   2 +-
 drivers/gpu/drm/rockchip/dw_dp-rockchip.c     |   2 +-
 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c   |  32 +-
 .../gpu/drm/rockchip/dw_hdmi_qp-rockchip.c    |   6 +-
 drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c |  12 +-
 drivers/gpu/drm/rockchip/rk3066_hdmi.c        |   2 +-
 drivers/gpu/drm/rockchip/rockchip_drm_drv.c   |   4 +-
 drivers/gpu/drm/rockchip/rockchip_lvds.c      |   6 +-
 drivers/gpu/drm/rockchip/rockchip_vop2_reg.c  |   4 +-
 drivers/gpu/drm/rockchip/rockchip_vop_reg.c   |  92 ++--
 drivers/gpu/drm/sitronix/st7571-i2c.c         |   2 +-
 drivers/gpu/drm/sitronix/st7571-spi.c         |   2 +-
 drivers/gpu/drm/sitronix/st7586.c             |   4 +-
 drivers/gpu/drm/sitronix/st7735r.c            |   4 +-
 drivers/gpu/drm/sprd/sprd_dpu.c               |   2 +-
 drivers/gpu/drm/sprd/sprd_drm.c               |   4 +-
 drivers/gpu/drm/sprd/sprd_dsi.c               |   2 +-
 drivers/gpu/drm/sti/sti_compositor.c          |   5 +-
 drivers/gpu/drm/sti/sti_drv.c                 |   4 +-
 drivers/gpu/drm/sti/sti_dvo.c                 |   2 +-
 drivers/gpu/drm/sti/sti_hda.c                 |   4 +-
 drivers/gpu/drm/sti/sti_hdmi.c                |   5 +-
 drivers/gpu/drm/sti/sti_hqvdp.c               |   2 +-
 drivers/gpu/drm/sti/sti_tvout.c               |   2 +-
 drivers/gpu/drm/sti/sti_vtg.c                 |   2 +-
 drivers/gpu/drm/stm/drv.c                     |   8 +-
 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c         |   4 +-
 drivers/gpu/drm/stm/lvds.c                    |   2 +-
 drivers/gpu/drm/sun4i/sun4i_frontend.c        |   8 +-
 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c        |   6 +-
 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c        |  12 +-
 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c         |   2 +-
 drivers/gpu/drm/sun4i/sun8i_tcon_top.c        |   6 +-
 drivers/gpu/drm/sysfb/ofdrm.c                 |   4 +-
 drivers/gpu/drm/sysfb/simpledrm.c             |   4 +-
 drivers/gpu/drm/tegra/dc.c                    |   5 +-
 drivers/gpu/drm/tegra/dpaux.c                 |   2 +-
 drivers/gpu/drm/tegra/drm.c                   |  84 ++--
 drivers/gpu/drm/tegra/dsi.c                   |   2 +-
 drivers/gpu/drm/tegra/gr2d.c                  |   2 +-
 drivers/gpu/drm/tegra/hdmi.c                  |   2 +-
 drivers/gpu/drm/tegra/hub.c                   |   9 +-
 drivers/gpu/drm/tegra/nvdec.c                 |   2 +-
 drivers/gpu/drm/tegra/nvjpg.c                 |   2 +-
 drivers/gpu/drm/tegra/sor.c                   |   2 +-
 drivers/gpu/drm/tegra/vic.c                   |   2 +-
 drivers/gpu/drm/tidss/tidss_drv.c             |  12 +-
 drivers/gpu/drm/tilcdc/tilcdc_drv.c           |   6 +-
 drivers/gpu/drm/tiny/arcpgu.c                 |   4 +-
 drivers/gpu/drm/tiny/ili9225.c                |   4 +-
 drivers/gpu/drm/tiny/ili9486.c                |   2 +-
 drivers/gpu/drm/tiny/mi0283qt.c               |   4 +-
 drivers/gpu/drm/tiny/panel-mipi-dbi.c         |   4 +-
 drivers/gpu/drm/tiny/pixpaper.c               |   2 +-
 drivers/gpu/drm/tiny/repaper.c                |   4 +-
 drivers/gpu/drm/tiny/sharp-memory.c           |   4 +-
 drivers/gpu/drm/tve200/tve200_drv.c           |   2 +-
 drivers/gpu/drm/v3d/v3d_drv.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_crtc.c                |   2 +-
 drivers/gpu/drm/vc4/vc4_dpi.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_drv.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_dsi.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_hdmi.c                |   2 +-
 drivers/gpu/drm/vc4/vc4_hvs.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_txp.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_v3d.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_vec.c                 |   2 +-
 drivers/gpu/drm/verisilicon/vs_dc.c           |   2 +-
 drivers/gpu/drm/xlnx/zynqmp_dpsub.c           |   4 +-
 drivers/gpu/host1x/dev.c                      |  20 +-
 drivers/gpu/host1x/tegra114-mipi.c            |   2 +-
 drivers/gpu/ipu-v3/ipu-common.c               |   8 +-
 drivers/gpu/ipu-v3/ipu-pre.c                  |   4 +-
 drivers/gpu/ipu-v3/ipu-prg.c                  |   4 +-
 254 files changed, 1155 insertions(+), 940 deletions(-)
drivers/gpu/drm/adp/adp-mipi.c +2 -2
index 956533870781..499c6b59c91d 100644
@@ -262,8 +262,8 @@ static void adp_mipi_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id adp_mipi_of_match[] = {
-	{ .compatible = "apple,h7-display-pipe-mipi", },
-	{ },
+	{ .compatible = "apple,h7-display-pipe-mipi" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, adp_mipi_of_match);
 
drivers/gpu/drm/adp/adp_drv.c +2 -2
index fdf0e6316175..6231d3320980 100644
@@ -592,8 +592,8 @@ static void adp_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id adp_of_match[] = {
-	{ .compatible = "apple,h7-display-pipe", },
-	{ },
+	{ .compatible = "apple,h7-display-pipe" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, adp_of_match);
 
drivers/gpu/drm/arm/display/komeda/komeda_drv.c +4 -4
index 703ff7827835..95636f37f058 100644
@@ -105,10 +105,10 @@ static int komeda_platform_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id komeda_of_match[] = {
-	{ .compatible = "arm,mali-d71", .data = d71_identify, },
-	{ .compatible = "arm,mali-d32", .data = d71_identify, },
-	{ .compatible = "armchina,linlon-d6", .data = d71_identify, },
-	{},
+	{ .compatible = "arm,mali-d71", .data = d71_identify },
+	{ .compatible = "arm,mali-d32", .data = d71_identify },
+	{ .compatible = "armchina,linlon-d6", .data = d71_identify },
+	{ }
 };
 
 MODULE_DEVICE_TABLE(of, komeda_of_match);
drivers/gpu/drm/arm/hdlcd_drv.c +2 -2
index 340b1bb38bf9..2be29d182558 100644
@@ -371,8 +371,8 @@ static void hdlcd_shutdown(struct platform_device *pdev)
 }
 
 static const struct of_device_id  hdlcd_of_match[] = {
-	{ .compatible	= "arm,hdlcd" },
-	{},
+	{ .compatible = "arm,hdlcd" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, hdlcd_of_match);
 
drivers/gpu/drm/arm/malidp_drv.c +4 -4
index b4e38eba5957..a02f0ff06a78 100644
@@ -578,17 +578,17 @@ static const struct drm_driver malidp_driver = {
 static const struct of_device_id  malidp_drm_of_match[] = {
 	{
 		.compatible = "arm,mali-dp500",
-		.data = &malidp_device[MALIDP_500]
+		.data = &malidp_device[MALIDP_500],
 	},
 	{
 		.compatible = "arm,mali-dp550",
-		.data = &malidp_device[MALIDP_550]
+		.data = &malidp_device[MALIDP_550],
 	},
 	{
 		.compatible = "arm,mali-dp650",
-		.data = &malidp_device[MALIDP_650]
+		.data = &malidp_device[MALIDP_650],
 	},
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, malidp_drm_of_match);
 
drivers/gpu/drm/armada/armada_crtc.c +1 -1
index d349beaa2990..9a295771f90a 100644
@@ -1067,7 +1067,7 @@ static const struct of_device_id armada_lcd_of_match[] = {
 		.compatible	= "marvell,dove-lcd",
 		.data		= &armada510_ops,
 	},
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, armada_lcd_of_match);
 
drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +1 -1
index 3822b2723ba6..d594147f4da5 100644
@@ -92,7 +92,7 @@ static const struct of_device_id aspeed_gfx_match[] = {
 	{ .compatible = "aspeed,ast2400-gfx", .data = &ast2400_config },
 	{ .compatible = "aspeed,ast2500-gfx", .data = &ast2500_config },
 	{ .compatible = "aspeed,ast2600-gfx", .data = &ast2600_config },
-	{ },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, aspeed_gfx_match);
 
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +2 -2
index 453c37de9bee..cf8bea1cc8f6 100644
@@ -676,7 +676,7 @@ static const struct of_device_id atmel_hlcdc_of_match[] = {
 		.compatible = "microchip,sama7d65-xlcdc",
 		.data = &atmel_xlcdc_dc_sama7d65,
 	},
-	{ /* sentinel */ },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, atmel_hlcdc_of_match);
 
@@ -1017,7 +1017,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(atmel_hlcdc_dc_drm_pm_ops,
 
 static const struct of_device_id atmel_hlcdc_dc_of_match[] = {
 	{ .compatible = "atmel,hlcdc-display-controller" },
-	{ },
+	{ }
 };
 
 static struct platform_driver atmel_hlcdc_dc_platform_driver = {
drivers/gpu/drm/bridge/analogix/analogix-anx6345.c +2 -2
index 0cff9ff0265a..200f9292e56d 100644
@@ -789,8 +789,8 @@ static const struct i2c_device_id anx6345_id[] = {
 MODULE_DEVICE_TABLE(i2c, anx6345_id);
 
 static const struct of_device_id anx6345_match_table[] = {
-	{ .compatible = "analogix,anx6345", },
-	{ /* sentinel */ },
+	{ .compatible = "analogix,anx6345" },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, anx6345_match_table);
 
drivers/gpu/drm/bridge/analogix/analogix-anx78xx.c +1 -1
index 94f07a2317e1..0662b145d289 100644
@@ -1345,7 +1345,7 @@ static const struct of_device_id anx78xx_match_table[] = {
 	{ .compatible = "analogix,anx7814", .data = anx781x_i2c_addresses },
 	{ .compatible = "analogix,anx7816", .data = anx781x_i2c_addresses },
 	{ .compatible = "analogix,anx7818", .data = anx781x_i2c_addresses },
-	{ /* sentinel */ },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, anx78xx_match_table);
 
drivers/gpu/drm/bridge/analogix/anx7625.c +2 -2
index c3af88e14f8b..5a246129364c 100644
@@ -3000,8 +3000,8 @@ static const struct i2c_device_id anx7625_id[] = {
 MODULE_DEVICE_TABLE(i2c, anx7625_id);
 
 static const struct of_device_id anx_match_table[] = {
-	{.compatible = "analogix,anx7625",},
-	{},
+	{ .compatible = "analogix,anx7625" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, anx_match_table);
 
drivers/gpu/drm/bridge/chipone-icn6211.c +1 -1
index 14eaae07455c..7a8a3dc0be0d 100644
@@ -763,7 +763,7 @@ static int chipone_i2c_probe(struct i2c_client *client)
 }
 
 static const struct of_device_id chipone_of_match[] = {
-	{ .compatible = "chipone,icn6211", },
+	{ .compatible = "chipone,icn6211" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, chipone_of_match);
drivers/gpu/drm/bridge/chrontel-ch7033.c +1 -1
index 3d48b42c38a0..1218a4dd723a 100644
@@ -595,7 +595,7 @@ static void ch7033_remove(struct i2c_client *client)
 }
 
 static const struct of_device_id ch7033_dt_ids[] = {
-	{ .compatible = "chrontel,ch7033", },
+	{ .compatible = "chrontel,ch7033" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, ch7033_dt_ids);
drivers/gpu/drm/bridge/display-connector.c +1 -1
index eb3412ec30a0..84dc3c1c690e 100644
@@ -469,7 +469,7 @@ static const struct of_device_id display_connector_match[] = {
 		.compatible = "dp-connector",
 		.data = (void *)DRM_MODE_CONNECTOR_DisplayPort,
 	},
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, display_connector_match);
 
drivers/gpu/drm/bridge/fsl-ldb.c +14 -9
index 3ac9fbc46343..8e148cc59e97 100644
@@ -382,15 +382,20 @@ static void fsl_ldb_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id fsl_ldb_match[] = {
-	{ .compatible = "fsl,imx6sx-ldb",
-	  .data = &fsl_ldb_devdata[IMX6SX_LDB], },
-	{ .compatible = "fsl,imx8mp-ldb",
-	  .data = &fsl_ldb_devdata[IMX8MP_LDB], },
-	{ .compatible = "fsl,imx93-ldb",
-	  .data = &fsl_ldb_devdata[IMX93_LDB], },
-	{ .compatible = "fsl,imx94-ldb",
-	  .data = &fsl_ldb_devdata[IMX94_LDB], },
-	{ /* sentinel */ },
+	{
+		.compatible = "fsl,imx6sx-ldb",
+		.data = &fsl_ldb_devdata[IMX6SX_LDB],
+	}, {
+		.compatible = "fsl,imx8mp-ldb",
+		.data = &fsl_ldb_devdata[IMX8MP_LDB],
+	}, {
+		.compatible = "fsl,imx93-ldb",
+		.data = &fsl_ldb_devdata[IMX93_LDB],
+	}, {
+		.compatible = "fsl,imx94-ldb",
+		.data = &fsl_ldb_devdata[IMX94_LDB],
+	},
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, fsl_ldb_match);
 
drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c +2 -5
index a31d4fc76f35..312d2b4d6892 100644
@@ -184,11 +184,8 @@ static void imx8mp_hdmi_pvi_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id imx8mp_hdmi_pvi_match[] = {
-	{
-		.compatible = "fsl,imx8mp-hdmi-pvi",
-	}, {
-		/* sentinel */
-	}
+	{ .compatible = "fsl,imx8mp-hdmi-pvi" },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, imx8mp_hdmi_pvi_match);
 
drivers/gpu/drm/bridge/imx/imx8qxp-pixel-combiner.c +2 -2
index cb399434374e..09316e2f36e1 100644
@@ -416,8 +416,8 @@ static const struct dev_pm_ops imx8qxp_pc_pm_ops = {
 };
 
 static const struct of_device_id imx8qxp_pc_dt_ids[] = {
-	{ .compatible = "fsl,imx8qm-pixel-combiner", },
-	{ .compatible = "fsl,imx8qxp-pixel-combiner", },
+	{ .compatible = "fsl,imx8qm-pixel-combiner" },
+	{ .compatible = "fsl,imx8qxp-pixel-combiner" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, imx8qxp_pc_dt_ids);
drivers/gpu/drm/bridge/imx/imx8qxp-pixel-link.c +2 -2
index 56ce6aa76181..69dc0b5f7617 100644
@@ -389,8 +389,8 @@ static void imx8qxp_pixel_link_bridge_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id imx8qxp_pixel_link_dt_ids[] = {
-	{ .compatible = "fsl,imx8qm-dc-pixel-link", },
-	{ .compatible = "fsl,imx8qxp-dc-pixel-link", },
+	{ .compatible = "fsl,imx8qm-dc-pixel-link" },
+	{ .compatible = "fsl,imx8qxp-dc-pixel-link" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, imx8qxp_pixel_link_dt_ids);
drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c +1 -1
index dce1a5b36024..a42d62a262b8 100644
@@ -454,7 +454,7 @@ static void imx8qxp_pxl2dpi_bridge_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id imx8qxp_pxl2dpi_dt_ids[] = {
-	{ .compatible = "fsl,imx8qxp-pxl2dpi", },
+	{ .compatible = "fsl,imx8qxp-pxl2dpi" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, imx8qxp_pxl2dpi_dt_ids);
drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c +1 -1
index 6453ea779606..4129fa0faa68 100644
@@ -895,7 +895,7 @@ static void imx93_dsi_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id imx93_dsi_dt_ids[] = {
-	{ .compatible = "fsl,imx93-mipi-dsi", },
+	{ .compatible = "fsl,imx93-mipi-dsi" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, imx93_dsi_dt_ids);
drivers/gpu/drm/bridge/imx/imx93-pdfc.c +2 -2
index 2e5019ed951a..ac2f6be30664 100644
@@ -203,8 +203,8 @@ static int imx93_pdfc_bridge_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id imx93_pdfc_dt_ids[] = {
-	{ .compatible = "nxp,imx91-pdfc", },
-	{ .compatible = "nxp,imx93-pdfc", },
+	{ .compatible = "nxp,imx91-pdfc" },
+	{ .compatible = "nxp,imx93-pdfc" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, imx93_pdfc_dt_ids);
drivers/gpu/drm/bridge/ite-it6263.c +1 -1
index e8e0197171e1..7498766fc73a 100644
@@ -875,7 +875,7 @@ static int it6263_probe(struct i2c_client *client)
 }
 
 static const struct of_device_id it6263_of_match[] = {
-	{ .compatible = "ite,it6263", },
+	{ .compatible = "ite,it6263" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, it6263_of_match);
drivers/gpu/drm/bridge/lontium-lt8912b.c +2 -2
index a4d05dcba9e0..c9d54be43e66 100644
@@ -814,8 +814,8 @@ static void lt8912_remove(struct i2c_client *client)
 }
 
 static const struct of_device_id lt8912_dt_match[] = {
-	{.compatible = "lontium,lt8912b"},
-	{}
+	{ .compatible = "lontium,lt8912b" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, lt8912_dt_match);
 
drivers/gpu/drm/bridge/lontium-lt9211.c +1 -1
index b165fba0a1c0..c01f9260c098 100644
@@ -779,7 +779,7 @@ MODULE_DEVICE_TABLE(i2c, lt9211_id);
 
 static const struct of_device_id lt9211_match_table[] = {
 	{ .compatible = "lontium,lt9211" },
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, lt9211_match_table);
 
drivers/gpu/drm/bridge/lvds-codec.c +1 -1
index 7ce633a74860..a1621be0e81d 100644
@@ -232,7 +232,7 @@ static const struct of_device_id lvds_codec_match[] = {
 		.compatible = "thine,thc63lvdm83d",
 		.data = (void *)DRM_MODE_CONNECTOR_LVDS,
 	},
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, lvds_codec_match);
 
drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c +2 -2
index 9153bf629fd1..fe2d5aebbf74 100644
@@ -324,7 +324,7 @@ MODULE_DEVICE_TABLE(i2c, stdp4028_ge_b850v3_fw_i2c_table);
 
 static const struct of_device_id stdp4028_ge_b850v3_fw_match[] = {
 	{ .compatible = "megachips,stdp4028-ge-b850v3-fw" },
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, stdp4028_ge_b850v3_fw_match);
 
@@ -371,7 +371,7 @@ MODULE_DEVICE_TABLE(i2c, stdp2690_ge_b850v3_fw_i2c_table);
 
 static const struct of_device_id stdp2690_ge_b850v3_fw_match[] = {
 	{ .compatible = "megachips,stdp2690-ge-b850v3-fw" },
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, stdp2690_ge_b850v3_fw_match);
 
drivers/gpu/drm/bridge/microchip-lvds.c +2 -4
index 39d5ec051627..f138c4f0f104 100644
@@ -220,10 +220,8 @@ static int mchp_lvds_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id mchp_lvds_dt_ids[] = {
-	{
-		.compatible = "microchip,sam9x75-lvds",
-	},
-	{},
+	{ .compatible = "microchip,sam9x75-lvds" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mchp_lvds_dt_ids);
 
drivers/gpu/drm/bridge/nwl-dsi.c +1 -1
index f748908d09e0..89d82d205ffa 100644
@@ -1136,7 +1136,7 @@ static const struct drm_bridge_timings nwl_dsi_timings = {
 };
 
 static const struct of_device_id nwl_dsi_dt_ids[] = {
-	{ .compatible = "fsl,imx8mq-nwl-dsi", },
+	{ .compatible = "fsl,imx8mq-nwl-dsi" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, nwl_dsi_dt_ids);
drivers/gpu/drm/bridge/nxp-ptn3460.c +1 -1
index be6a06130ba9..4b15e1ec68eb 100644
@@ -330,7 +330,7 @@ MODULE_DEVICE_TABLE(i2c, ptn3460_i2c_table);
 
 static const struct of_device_id ptn3460_match[] = {
 	{ .compatible = "nxp,ptn3460" },
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, ptn3460_match);
 
drivers/gpu/drm/bridge/parade-ps8622.c +3 -3
index 3a2ec482037d..209d05e9e30a 100644
@@ -441,9 +441,9 @@ static const struct drm_bridge_funcs ps8622_bridge_funcs = {
 };
 
 static const struct of_device_id ps8622_devices[] = {
-	{.compatible = "parade,ps8622",},
-	{.compatible = "parade,ps8625",},
-	{}
+	{ .compatible = "parade,ps8622" },
+	{ .compatible = "parade,ps8625" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, ps8622_devices);
 
drivers/gpu/drm/bridge/sii902x.c +1 -1
index 0f7cdf0ea148..edef2851a23e 100644
@@ -1243,7 +1243,7 @@ static void sii902x_remove(struct i2c_client *client)
 }
 
 static const struct of_device_id sii902x_dt_ids[] = {
-	{ .compatible = "sil,sii9022", },
+	{ .compatible = "sil,sii9022" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, sii902x_dt_ids);
drivers/gpu/drm/bridge/sii9234.c +1 -1
index 9fef332db248..4bff4a0d1b84 100644
@@ -939,7 +939,7 @@ static void sii9234_remove(struct i2c_client *client)
 
 static const struct of_device_id sii9234_dt_match[] = {
 	{ .compatible = "sil,sii9234" },
-	{ },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, sii9234_dt_match);
 
drivers/gpu/drm/bridge/sil-sii8620.c +1 -1
index 88f9cd9ba6db..0615b8833160 100644
@@ -2368,7 +2368,7 @@ static void sii8620_remove(struct i2c_client *client)
 
 static const struct of_device_id sii8620_dt_match[] = {
 	{ .compatible = "sil,sii8620" },
-	{ },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, sii8620_dt_match);
 
drivers/gpu/drm/bridge/tc358767.c +1 -1
index f61c619fb305..eb95a61dadb5 100644
@@ -2591,7 +2591,7 @@ static const struct i2c_device_id tc358767_i2c_ids[] = {
 MODULE_DEVICE_TABLE(i2c, tc358767_i2c_ids);
 
 static const struct of_device_id tc358767_of_ids[] = {
-	{ .compatible = "toshiba,tc358767", },
+	{ .compatible = "toshiba,tc358767" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, tc358767_of_ids);
drivers/gpu/drm/bridge/tc358768.c +2 -2
index 9dbc66a3531c..b1e6c6336c50 100644
@@ -1360,8 +1360,8 @@ static const struct i2c_device_id tc358768_i2c_ids[] = {
 MODULE_DEVICE_TABLE(i2c, tc358768_i2c_ids);
 
 static const struct of_device_id tc358768_of_ids[] = {
-	{ .compatible = "toshiba,tc358768", },
-	{ .compatible = "toshiba,tc358778", },
+	{ .compatible = "toshiba,tc358768" },
+	{ .compatible = "toshiba,tc358778" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, tc358768_of_ids);
drivers/gpu/drm/bridge/tc358775.c +2 -2
index 203dc738ecef..b0ef0ad34987 100644
@@ -734,8 +734,8 @@ static const struct i2c_device_id tc358775_i2c_ids[] = {
 MODULE_DEVICE_TABLE(i2c, tc358775_i2c_ids);
 
 static const struct of_device_id tc358775_of_ids[] = {
-	{ .compatible = "toshiba,tc358765", .data = (void *)TC358765, },
-	{ .compatible = "toshiba,tc358775", .data = (void *)TC358775, },
+	{ .compatible = "toshiba,tc358765", .data = (void *)TC358765 },
+	{ .compatible = "toshiba,tc358775", .data = (void *)TC358775 },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, tc358775_of_ids);
drivers/gpu/drm/bridge/tda998x_drv.c +1 -1
index 54ef526a1133..e5c48fbc9ffc 100644
@@ -2056,7 +2056,7 @@ static void tda998x_remove(struct i2c_client *client)
 
 #ifdef CONFIG_OF
 static const struct of_device_id tda998x_dt_ids[] = {
-	{ .compatible = "nxp,tda998x", },
+	{ .compatible = "nxp,tda998x" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, tda998x_dt_ids);
drivers/gpu/drm/bridge/th1520-dw-hdmi.c +1 -1
index ff01e8865f8e..b6eb24bc2603 100644
@@ -152,7 +152,7 @@ static void th1520_dw_hdmi_remove(struct platform_device *pdev)
 
 static const struct of_device_id th1520_dw_hdmi_of_table[] = {
 	{ .compatible = "thead,th1520-dw-hdmi" },
-	{ /* Sentinel */ },
+	{ /* Sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, th1520_dw_hdmi_of_table);
 
drivers/gpu/drm/bridge/thc63lvd1024.c +2 -2
index 679b424ba0c3..475f5e5f6375 100644
@@ -229,8 +229,8 @@ static void thc63_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id thc63_match[] = {
-	{ .compatible = "thine,thc63lvd1024", },
-	{ },
+	{ .compatible = "thine,thc63lvd1024" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, thc63_match);
 
drivers/gpu/drm/bridge/ti-sn65dsi83.c +1 -1
index 77ef1613c5f5..43e1aadca164 100644
@@ -1077,7 +1077,7 @@ MODULE_DEVICE_TABLE(i2c, sn65dsi83_id);
 static const struct of_device_id sn65dsi83_match_table[] = {
 	{ .compatible = "ti,sn65dsi83", .data = (void *)MODEL_SN65DSI83 },
 	{ .compatible = "ti,sn65dsi84", .data = (void *)MODEL_SN65DSI84 },
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, sn65dsi83_match_table);
 
drivers/gpu/drm/bridge/ti-sn65dsi86.c +2 -2
index 48b83df9aed6..86bbc03a50bb 100644
@@ -2122,8 +2122,8 @@ static const struct i2c_device_id ti_sn65dsi86_id[] = {
 MODULE_DEVICE_TABLE(i2c, ti_sn65dsi86_id);
 
 static const struct of_device_id ti_sn65dsi86_match_table[] = {
-	{.compatible = "ti,sn65dsi86"},
-	{},
+	{ .compatible = "ti,sn65dsi86" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, ti_sn65dsi86_match_table);
 
drivers/gpu/drm/bridge/ti-tfp410.c +1 -1
index 64a3d64e1f7b..3a4699bc89ea 100644
@@ -402,7 +402,7 @@ static void tfp410_remove(struct platform_device *pdev)
 
 static const struct of_device_id tfp410_match[] = {
 	{ .compatible = "ti,tfp410" },
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, tfp410_match);
 
drivers/gpu/drm/bridge/ti-tpd12s015.c +2 -2
index e7b172ab7f55..e4e0cde1d7a4 100644
@@ -196,8 +196,8 @@ static void tpd12s015_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id tpd12s015_of_match[] = {
-	{ .compatible = "ti,tpd12s015", },
-	{},
+	{ .compatible = "ti,tpd12s015" },
+	{ }
 };
 
 MODULE_DEVICE_TABLE(of, tpd12s015_of_match);
drivers/gpu/drm/bridge/waveshare-dsi.c +2 -2
index 2c40bfef2b45..f3c7186746c6 100644
@@ -185,8 +185,8 @@ static int ws_bridge_probe(struct i2c_client *i2c)
 }
 
 static const struct of_device_id ws_bridge_of_ids[] = {
-	{.compatible = "waveshare,dsi2dpi", .data = (void *)DRM_MODE_CONNECTOR_DPI, },
-	{.compatible = "waveshare,dsi2lvds", .data = (void *)DRM_MODE_CONNECTOR_LVDS, },
+	{ .compatible = "waveshare,dsi2dpi", .data = (void *)DRM_MODE_CONNECTOR_DPI },
+	{ .compatible = "waveshare,dsi2lvds", .data = (void *)DRM_MODE_CONNECTOR_LVDS },
 	{ }
 };
 
drivers/gpu/drm/etnaviv/etnaviv_gpu.c +1 -1
index 28d29d53e15a..91af13af7cf8 100644
@@ -1888,7 +1888,7 @@ static const struct component_ops gpu_ops = {
 
 static const struct of_device_id etnaviv_gpu_match[] = {
 	{
-		.compatible = "vivante,gc"
+		.compatible = "vivante,gc",
 	},
 	{ /* sentinel */ }
 };
drivers/gpu/drm/exynos/exynos5433_drm_decon.c +3 -3
index 4393ed768996..3063d7db20ce 100644
@@ -749,13 +749,13 @@ static DEFINE_RUNTIME_DEV_PM_OPS(exynos5433_decon_pm_ops,
 static const struct of_device_id exynos5433_decon_driver_dt_match[] = {
 	{
 		.compatible = "samsung,exynos5433-decon",
-		.data = (void *)I80_HW_TRG
+		.data = (void *)I80_HW_TRG,
 	},
 	{
 		.compatible = "samsung,exynos5433-decon-tv",
-		.data = (void *)(I80_HW_TRG | IFTYPE_HDMI)
+		.data = (void *)(I80_HW_TRG | IFTYPE_HDMI),
 	},
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, exynos5433_decon_driver_dt_match);
 
drivers/gpu/drm/exynos/exynos7_drm_decon.c +1 -1
index 3ab5d3586792..88fb38861bb3 100644
@@ -86,7 +86,7 @@ static const struct of_device_id decon_driver_dt_match[] = {
 		.compatible = "samsung,exynos7870-decon",
 		.data = &exynos7870_decon_data,
 	},
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, decon_driver_dt_match);
 
drivers/gpu/drm/exynos/exynos_dp.c +1 -1
index 4db7400c8a23..b97ccc438992 100644
@@ -208,7 +208,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(exynos_dp_pm_ops, exynos_dp_suspend,
 
 static const struct of_device_id exynos_dp_match[] = {
 	{ .compatible = "samsung,exynos5-dp" },
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, exynos_dp_match);
 
drivers/gpu/drm/exynos/exynos_drm_fimc.c +1 -1
index 9c2ad95799ee..6cc290f6ff3c 100644
@@ -1401,7 +1401,7 @@ static DEFINE_RUNTIME_DEV_PM_OPS(fimc_pm_ops, fimc_runtime_suspend,
 static const struct of_device_id fimc_of_match[] = {
 	{ .compatible = "samsung,exynos4210-fimc" },
 	{ .compatible = "samsung,exynos4212-fimc" },
-	{ },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, fimc_of_match);
 
drivers/gpu/drm/exynos/exynos_drm_fimd.c +20 -13
index 60af868ac214..13fee4d5846a 100644
@@ -201,19 +201,26 @@ struct fimd_context {
 };
 
 static const struct of_device_id fimd_driver_dt_match[] = {
-	{ .compatible = "samsung,s3c6400-fimd",
-	  .data = &s3c64xx_fimd_driver_data },
-	{ .compatible = "samsung,s5pv210-fimd",
-	  .data = &s5pv210_fimd_driver_data },
-	{ .compatible = "samsung,exynos3250-fimd",
-	  .data = &exynos3_fimd_driver_data },
-	{ .compatible = "samsung,exynos4210-fimd",
-	  .data = &exynos4_fimd_driver_data },
-	{ .compatible = "samsung,exynos5250-fimd",
-	  .data = &exynos5_fimd_driver_data },
-	{ .compatible = "samsung,exynos5420-fimd",
-	  .data = &exynos5420_fimd_driver_data },
-	{},
+	{
+		.compatible = "samsung,s3c6400-fimd",
+		.data = &s3c64xx_fimd_driver_data,
+	}, {
+		.compatible = "samsung,s5pv210-fimd",
+		.data = &s5pv210_fimd_driver_data,
+	}, {
+		.compatible = "samsung,exynos3250-fimd",
+		.data = &exynos3_fimd_driver_data,
+	}, {
+		.compatible = "samsung,exynos4210-fimd",
+		.data = &exynos4_fimd_driver_data,
+	}, {
+		.compatible = "samsung,exynos5250-fimd",
+		.data = &exynos5_fimd_driver_data,
+	}, {
+		.compatible = "samsung,exynos5420-fimd",
+		.data = &exynos5420_fimd_driver_data,
+	},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, fimd_driver_dt_match);
 
drivers/gpu/drm/exynos/exynos_drm_g2d.c +1 -1
index 280c1a41342a..b7c2527f8c99 100644
@@ -1602,7 +1602,7 @@ static const struct dev_pm_ops g2d_pm_ops = {
 static const struct of_device_id exynos_g2d_match[] = {
 	{ .compatible = "samsung,exynos5250-g2d" },
 	{ .compatible = "samsung,exynos4212-g2d" },
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, exynos_g2d_match);
 
drivers/gpu/drm/exynos/exynos_drm_gsc.c +1 -1
index 4a07deeb382b..03a77ea19836 100644
@@ -1412,8 +1412,8 @@ static const struct of_device_id exynos_drm_gsc_of_match[] = {
 	}, {
 		.compatible = "samsung,exynos5433-gsc",
 		.data = &gsc_exynos5433_drvdata,
-	}, {
 	},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, exynos_drm_gsc_of_match);
 
drivers/gpu/drm/exynos/exynos_drm_rotator.c +1 -1
index 955ea0cb87b6..21bad17b92a3 100644
@@ -441,8 +441,8 @@ static const struct of_device_id exynos_rotator_match[] = {
 	}, {
 		.compatible = "samsung,exynos5250-rotator",
 		.data = &rotator_5250_data,
-	}, {
 	},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, exynos_rotator_match);
 
drivers/gpu/drm/exynos/exynos_drm_scaler.c +1 -1
index 2bfbafd5c414..8504c69b34c2 100644
@@ -712,8 +712,8 @@ static const struct of_device_id exynos_scaler_match[] = {
 	}, {
 		.compatible = "samsung,exynos5433-scaler",
 		.data = &exynos5433_data,
-	}, {
 	},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, exynos_scaler_match);
 
drivers/gpu/drm/exynos/exynos_hdmi.c +2 -3
index d703038e9b91..99e9abdda2be 100644
@@ -1848,9 +1848,8 @@ static const struct of_device_id hdmi_match_types[] = {
 	}, {
 		.compatible = "samsung,exynos5433-hdmi",
 		.data = &exynos5433_hdmi_driver_data,
-	}, {
-		/* end node */
-	}
+	},
+	{ /* end node */ }
 };
 MODULE_DEVICE_TABLE (of, hdmi_match_types);
 
drivers/gpu/drm/exynos/exynos_mixer.c +7 -8
index 9b210ff7449f..9eacf3814aa3 100644
@@ -1154,22 +1154,21 @@ static const struct mixer_drv_data exynos4210_mxr_drv_data = {
 static const struct of_device_id mixer_match_types[] = {
 	{
 		.compatible = "samsung,exynos4210-mixer",
-		.data	= &exynos4210_mxr_drv_data,
+		.data = &exynos4210_mxr_drv_data,
 	}, {
 		.compatible = "samsung,exynos4212-mixer",
-		.data	= &exynos4212_mxr_drv_data,
+		.data = &exynos4212_mxr_drv_data,
 	}, {
 		.compatible = "samsung,exynos5-mixer",
-		.data	= &exynos5250_mxr_drv_data,
+		.data = &exynos5250_mxr_drv_data,
 	}, {
 		.compatible = "samsung,exynos5250-mixer",
-		.data	= &exynos5250_mxr_drv_data,
+		.data = &exynos5250_mxr_drv_data,
 	}, {
 		.compatible = "samsung,exynos5420-mixer",
-		.data	= &exynos5420_mxr_drv_data,
-	}, {
-		/* end node */
-	}
+		.data = &exynos5420_mxr_drv_data,
+	},
+	{ /* end node */ }
 };
 MODULE_DEVICE_TABLE(of, mixer_match_types);
 
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c +1 -1
index 6709b3b1a3ea..f8e47166e16c 100644
@@ -250,8 +250,8 @@ static const struct of_device_id fsl_dcu_of_match[] = {
 	}, {
 		.compatible = "fsl,vf610-dcu",
 		.data = &fsl_dcu_vf610_data,
-	}, {
 	},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, fsl_dcu_of_match);
 
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c +1 -1
index df89a8f18c8f..33061b8d4395 100644
@@ -883,7 +883,7 @@ static void dsi_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id dsi_of_match[] = {
-	{.compatible = "hisilicon,hi6220-dsi"},
+	{ .compatible = "hisilicon,hi6220-dsi" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, dsi_of_match);
drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c +4 -3
index 9c154a259153..4e640f05a550 100644
@@ -296,10 +296,11 @@ static void kirin_drm_platform_shutdown(struct platform_device *pdev)
 }
 
 static const struct of_device_id kirin_drm_dt_ids[] = {
-	{ .compatible = "hisilicon,hi6220-ade",
-	  .data = &ade_driver_data,
+	{
+		.compatible = "hisilicon,hi6220-ade",
+		.data = &ade_driver_data,
 	},
-	{ /* end node */ },
+	{ /* end node */ }
 };
 MODULE_DEVICE_TABLE(of, kirin_drm_dt_ids);
 
drivers/gpu/drm/i915/display/intel_display_device.c +1 -1
index 055396f85e4a..6b51a5102201 100644
@@ -1442,7 +1442,7 @@ static bool has_no_display(struct pci_dev *pdev)
 {
 	static const struct pci_device_id ids[] = {
 		INTEL_IVB_Q_IDS(INTEL_VGA_DEVICE, 0),
-		{}
+		{ }
 	};
 
 	return pci_match_id(ids, pdev);
drivers/gpu/drm/i915/display/intel_lpe_audio.c +3 -3
index ff2cf479d8e1..3d92cb307251 100644
@@ -185,10 +185,10 @@ static bool lpe_audio_detect(struct intel_display *display)
 	if (display->platform.valleyview || display->platform.cherryview) {
 		static const struct pci_device_id atom_hdaudio_ids[] = {
 			/* Baytrail */
-			{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0f04)},
+			{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0f04) },
 			/* Braswell */
-			{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x2284)},
-			{}
+			{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x2284) },
+			{ }
 		};
 
 		if (!pci_dev_present(atom_hdaudio_ids)) {
drivers/gpu/drm/i915/i915_pci.c +1 -1
index 84a7dc6ab5db..faceb3de4fa3 100644
@@ -870,7 +870,7 @@ static const struct pci_device_id pciidlist[] = {
 	INTEL_ATS_M_IDS(INTEL_VGA_DEVICE, &ats_m_info),
 	INTEL_ARL_IDS(INTEL_VGA_DEVICE, &mtl_info),
 	INTEL_MTL_IDS(INTEL_VGA_DEVICE, &mtl_info),
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(pci, pciidlist);
 
drivers/gpu/drm/imagination/pvr_drv.c +1 -1
index 2d522a8e46ad..e32dc8f5fa19 100644
@@ -1516,7 +1516,7 @@ static const struct of_device_id dt_match[] = {
 		.compatible = "img,img-axe",
 		.data = &pvr_device_data_manual,
 	},
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, dt_match);
 
drivers/gpu/drm/imx/dc/dc-drv.c +1 -1
index 30e2545280e0..55d3016b659f 100644
@@ -244,7 +244,7 @@ static const struct dev_pm_ops dc_pm_ops = {
 };
 
 static const struct of_device_id dc_dt_ids[] = {
-	{ .compatible = "fsl,imx8qxp-dc", },
+	{ .compatible = "fsl,imx8qxp-dc" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, dc_dt_ids);
drivers/gpu/drm/imx/dc/dc-ic.c +1 -1
index 64f058a466e4..3586d26befab 100644
@@ -268,7 +268,7 @@ static const struct dev_pm_ops dc_ic_pm_ops = {
 };
 
 static const struct of_device_id dc_ic_dt_ids[] = {
-	{ .compatible = "fsl,imx8qxp-dc-intc", },
+	{ .compatible = "fsl,imx8qxp-dc-intc" },
 	{ /* sentinel */ }
 };
 
drivers/gpu/drm/imx/dc/dc-pe.c +1 -1
index 718426ccff52..d0ee202b21e9 100644
@@ -140,7 +140,7 @@ static const struct dev_pm_ops dc_pe_pm_ops = {
 };
 
 static const struct of_device_id dc_pe_dt_ids[] = {
-	{ .compatible = "fsl,imx8qxp-dc-pixel-engine", },
+	{ .compatible = "fsl,imx8qxp-dc-pixel-engine" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, dc_pe_dt_ids);
drivers/gpu/drm/imx/dcss/dcss-drv.c +2 -2
index 19c618f6423e..630712992029 100644
@@ -104,8 +104,8 @@ static struct dcss_type_data dcss_types[] = {
 };
 
 static const struct of_device_id dcss_of_match[] = {
-	{ .compatible = "nxp,imx8mq-dcss", .data = &dcss_types[DCSS_IMX8MQ], },
-	{},
+	{ .compatible = "nxp,imx8mq-dcss", .data = &dcss_types[DCSS_IMX8MQ] },
+	{ }
 };
 
 MODULE_DEVICE_TABLE(of, dcss_of_match);
drivers/gpu/drm/imx/ipuv3/dw_hdmi-imx.c +6 -5
index 09babdcf3289..893d06b4c965 100644
@@ -178,13 +178,14 @@ static struct dw_hdmi_plat_data imx6dl_hdmi_drv_data = {
 };
 
 static const struct of_device_id dw_hdmi_imx_dt_ids[] = {
-	{ .compatible = "fsl,imx6q-hdmi",
-	  .data = &imx6q_hdmi_drv_data
+	{
+		.compatible = "fsl,imx6q-hdmi",
+		.data = &imx6q_hdmi_drv_data,
 	}, {
-	  .compatible = "fsl,imx6dl-hdmi",
-	  .data = &imx6dl_hdmi_drv_data
+		.compatible = "fsl,imx6dl-hdmi",
+		.data = &imx6dl_hdmi_drv_data,
 	},
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, dw_hdmi_imx_dt_ids);
 
drivers/gpu/drm/imx/ipuv3/imx-drm-core.c +2 -2
index 51a0ec043248..34369626e1ec 100644
@@ -336,8 +336,8 @@ static int imx_drm_resume(struct device *dev)
 static SIMPLE_DEV_PM_OPS(imx_drm_pm_ops, imx_drm_suspend, imx_drm_resume);
 
 static const struct of_device_id imx_drm_dt_ids[] = {
-	{ .compatible = "fsl,imx-display-subsystem", },
-	{ /* sentinel */ },
+	{ .compatible = "fsl,imx-display-subsystem" },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, imx_drm_dt_ids);
 
drivers/gpu/drm/imx/ipuv3/imx-ldb.c +2 -2
index 523c184aafd4..508f392f5782 100644
@@ -464,8 +464,8 @@ static struct bus_mux imx6q_lvds_mux[2] = {
  * entries (in this case fsl,imx53-ldb) need to be ordered last.
  */
 static const struct of_device_id imx_ldb_dt_ids[] = {
-	{ .compatible = "fsl,imx6q-ldb", .data = imx6q_lvds_mux, },
-	{ .compatible = "fsl,imx53-ldb", .data = NULL, },
+	{ .compatible = "fsl,imx6q-ldb", .data = imx6q_lvds_mux },
+	{ .compatible = "fsl,imx53-ldb", .data = NULL },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, imx_ldb_dt_ids);
drivers/gpu/drm/imx/ipuv3/imx-tve.c +1 -1
index a55e1cdd3344..8a15fd8afd65 100644
@@ -671,7 +671,7 @@ static void imx_tve_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id imx_tve_dt_ids[] = {
-	{ .compatible = "fsl,imx53-tve", },
+	{ .compatible = "fsl,imx53-tve" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, imx_tve_dt_ids);
drivers/gpu/drm/imx/ipuv3/parallel-display.c +1 -1
index eb75827394f8..354393a16f46 100644
@@ -277,7 +277,7 @@ static void imx_pd_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id imx_pd_dt_ids[] = {
-	{ .compatible = "fsl,imx-parallel-display", },
+	{ .compatible = "fsl,imx-parallel-display" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, imx_pd_dt_ids);
drivers/gpu/drm/ingenic/ingenic-drm-drv.c +1 -1
index 625ec76cf04d..b6916f6fac91 100644
@@ -1633,7 +1633,7 @@ static const struct of_device_id ingenic_drm_of_match[] = {
 	{ .compatible = "ingenic,jz4760b-lcd", .data = &jz4760b_soc_info },
 	{ .compatible = "ingenic,jz4770-lcd", .data = &jz4770_soc_info },
 	{ .compatible = "ingenic,jz4780-lcd", .data = &jz4780_soc_info },
-	{ /* sentinel */ },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, ingenic_drm_of_match);
 
drivers/gpu/drm/ingenic/ingenic-dw-hdmi.c +1 -1
index 72f8b44998a5..76ca7b9e0165 100644
@@ -67,7 +67,7 @@ static struct dw_hdmi_plat_data ingenic_dw_hdmi_plat_data = {
 
 static const struct of_device_id ingenic_dw_hdmi_dt_ids[] = {
 	{ .compatible = "ingenic,jz4780-dw-hdmi" },
-	{ /* Sentinel */ },
+	{ /* Sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, ingenic_dw_hdmi_dt_ids);
 
drivers/gpu/drm/ingenic/ingenic-ipu.c +1 -1
index 7f3cc8a75898..81bd2e5ebe22 100644
@@ -985,7 +985,7 @@ static const struct soc_info jz4760_soc_info = {
 static const struct of_device_id ingenic_ipu_of_match[] = {
 	{ .compatible = "ingenic,jz4725b-ipu", .data = &jz4725b_soc_info },
 	{ .compatible = "ingenic,jz4760-ipu", .data = &jz4760_soc_info },
-	{ /* sentinel */ },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, ingenic_ipu_of_match);
 
drivers/gpu/drm/kmb/kmb_drv.c +2 -2
index 7c2eb1152fc2..0c306b027e74 100644
@@ -582,8 +582,8 @@ static int kmb_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id kmb_of_match[] = {
-	{.compatible = "intel,keembay-display"},
-	{},
+	{ .compatible = "intel,keembay-display" },
+	{ }
 };
 
 MODULE_DEVICE_TABLE(of, kmb_of_match);
drivers/gpu/drm/lima/lima_drv.c +1 -1
index 5113d9512464..56fe7b7c411b 100644
@@ -476,7 +476,7 @@ static const struct lima_compatible lima_mali450_data = {
 static const struct of_device_id dt_match[] = {
 	{ .compatible = "arm,mali-400", .data = &lima_mali400_data },
 	{ .compatible = "arm,mali-450", .data = &lima_mali450_data },
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, dt_match);
 
drivers/gpu/drm/logicvc/logicvc_drm.c +1 -1
index bbebf4fc7f51..4dde98f7fe75 100644
@@ -484,7 +484,7 @@ static void logicvc_drm_shutdown(struct platform_device *pdev)
 static const struct of_device_id logicvc_drm_of_table[] = {
 	{ .compatible = "xylon,logicvc-3.02.a-display" },
 	{ .compatible = "xylon,logicvc-4.01.a-display" },
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, logicvc_drm_of_table);
 
drivers/gpu/drm/mcde/mcde_drv.c +1 -1
index 52c4d2641a14..7dd2b40dcefd 100644
@@ -474,7 +474,7 @@ static const struct of_device_id mcde_of_match[] = {
 	{
 		.compatible = "ste,mcde",
 	},
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mcde_of_match);
 
drivers/gpu/drm/mcde/mcde_dsi.c +1 -1
index daac8d67913d..b491174c0f25 100644
@@ -1200,7 +1200,7 @@ static const struct of_device_id mcde_dsi_of_match[] = {
 	{
 		.compatible = "ste,mcde-dsi",
 	},
-	{},
+	{ }
 };
 
 struct platform_driver mcde_dsi_driver = {
drivers/gpu/drm/mediatek/mtk_cec.c +2 -2
index 0a5856d80f6d..8c48f11f17d5 100644
@@ -234,8 +234,8 @@ static void mtk_cec_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id mtk_cec_of_ids[] = {
-	{ .compatible = "mediatek,mt8173-cec", },
-	{}
+	{ .compatible = "mediatek,mt8173-cec" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mtk_cec_of_ids);
 
drivers/gpu/drm/mediatek/mtk_disp_ccorr.c +9 -5
index 5f64a0a6e1b2..62151117af40 100644
@@ -178,11 +178,15 @@ static const struct mtk_disp_ccorr_data mt8192_ccorr_driver_data = {
 };
 
 static const struct of_device_id mtk_disp_ccorr_driver_dt_match[] = {
-	{ .compatible = "mediatek,mt8183-disp-ccorr",
-	  .data = &mt8183_ccorr_driver_data},
-	{ .compatible = "mediatek,mt8192-disp-ccorr",
-	  .data = &mt8192_ccorr_driver_data},
-	{},
+	{
+		.compatible = "mediatek,mt8183-disp-ccorr",
+		.data = &mt8183_ccorr_driver_data,
+	},
+	{
+		.compatible = "mediatek,mt8192-disp-ccorr",
+		.data = &mt8192_ccorr_driver_data,
+	},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mtk_disp_ccorr_driver_dt_match);
 
drivers/gpu/drm/mediatek/mtk_disp_color.c +13 -7
index 7af9966c036d..64ac0e820c2e 100644
@@ -145,13 +145,19 @@ static const struct mtk_disp_color_data mt8173_color_driver_data = {
 };
 
 static const struct of_device_id mtk_disp_color_driver_dt_match[] = {
-	{ .compatible = "mediatek,mt2701-disp-color",
-	  .data = &mt2701_color_driver_data},
-	{ .compatible = "mediatek,mt8167-disp-color",
-	  .data = &mt8167_color_driver_data},
-	{ .compatible = "mediatek,mt8173-disp-color",
-	  .data = &mt8173_color_driver_data},
-	{},
+	{
+		.compatible = "mediatek,mt2701-disp-color",
+		.data = &mt2701_color_driver_data,
+	},
+	{
+		.compatible = "mediatek,mt8167-disp-color",
+		.data = &mt8167_color_driver_data,
+	},
+	{
+		.compatible = "mediatek,mt8173-disp-color",
+		.data = &mt8173_color_driver_data,
+	},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mtk_disp_color_driver_dt_match);
 
drivers/gpu/drm/mediatek/mtk_disp_gamma.c +13 -7
index 787f68e7d189..c51e087937a6 100644
@@ -315,13 +315,19 @@ static const struct mtk_disp_gamma_data mt8195_gamma_driver_data = {
 };
 
 static const struct of_device_id mtk_disp_gamma_driver_dt_match[] = {
-	{ .compatible = "mediatek,mt8173-disp-gamma",
-	  .data = &mt8173_gamma_driver_data},
-	{ .compatible = "mediatek,mt8183-disp-gamma",
-	  .data = &mt8183_gamma_driver_data},
-	{ .compatible = "mediatek,mt8195-disp-gamma",
-	  .data = &mt8195_gamma_driver_data},
-	{},
+	{
+		.compatible = "mediatek,mt8173-disp-gamma",
+		.data = &mt8173_gamma_driver_data,
+	},
+	{
+		.compatible = "mediatek,mt8183-disp-gamma",
+		.data = &mt8183_gamma_driver_data,
+	},
+	{
+		.compatible = "mediatek,mt8195-disp-gamma",
+		.data = &mt8195_gamma_driver_data,
+	},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mtk_disp_gamma_driver_dt_match);
 
drivers/gpu/drm/mediatek/mtk_disp_merge.c +2 -2
index 6f00e8cd1b5c..1472f94afccd 100644
@@ -360,8 +360,8 @@ static void mtk_disp_merge_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id mtk_disp_merge_driver_dt_match[] = {
-	{ .compatible = "mediatek,mt8195-disp-merge", },
-	{},
+	{ .compatible = "mediatek,mt8195-disp-merge" },
+	{ }
 };
 
 MODULE_DEVICE_TABLE(of, mtk_disp_merge_driver_dt_match);
drivers/gpu/drm/mediatek/mtk_disp_ovl.c +33 -17

56 lines not on this page · raw message

drivers/gpu/drm/mediatek/mtk_disp_rdma.c +17 -9
index 67bd9e1cad59..d27f07e3d537 100644
@@ -401,15 +401,23 @@ static const struct mtk_disp_rdma_data mt8195_rdma_driver_data = {
 };
 
 static const struct of_device_id mtk_disp_rdma_driver_dt_match[] = {
-	{ .compatible = "mediatek,mt2701-disp-rdma",
-	  .data = &mt2701_rdma_driver_data},
-	{ .compatible = "mediatek,mt8173-disp-rdma",
-	  .data = &mt8173_rdma_driver_data},
-	{ .compatible = "mediatek,mt8183-disp-rdma",
-	  .data = &mt8183_rdma_driver_data},
-	{ .compatible = "mediatek,mt8195-disp-rdma",
-	  .data = &mt8195_rdma_driver_data},
-	{},
+	{
+		.compatible = "mediatek,mt2701-disp-rdma",
+		.data = &mt2701_rdma_driver_data,
+	},
+	{
+		.compatible = "mediatek,mt8173-disp-rdma",
+		.data = &mt8173_rdma_driver_data,
+	},
+	{
+		.compatible = "mediatek,mt8183-disp-rdma",
+		.data = &mt8183_rdma_driver_data,
+	},
+	{
+		.compatible = "mediatek,mt8195-disp-rdma",
+		.data = &mt8195_rdma_driver_data,
+	},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mtk_disp_rdma_driver_dt_match);
 
drivers/gpu/drm/mediatek/mtk_dp.c +1 -1
index 974c4fff6fd3..287ba15c9019 100644
@@ -2945,7 +2945,7 @@ static const struct of_device_id mtk_dp_of_match[] = {
 		.compatible = "mediatek,mt8195-dp-tx",
 		.data = &mt8195_dp_data,
 	},
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mtk_dp_of_match);
 
drivers/gpu/drm/mediatek/mtk_dpi.c +1 -1
index 1bc569dc01a3..1d111b8068e6 100644
@@ -1347,7 +1347,7 @@ static const struct of_device_id mtk_dpi_of_ids[] = {
 	{ .compatible = "mediatek,mt8192-dpi", .data = &mt8192_conf },
 	{ .compatible = "mediatek,mt8195-dp-intf", .data = &mt8195_dpintf_conf },
 	{ .compatible = "mediatek,mt8195-dpi", .data = &mt8195_conf },
-	{ /* sentinel */ },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, mtk_dpi_of_ids);
 
drivers/gpu/drm/mediatek/mtk_drm_drv.c +243 -152

407 lines not on this page · raw message

drivers/gpu/drm/mediatek/mtk_ethdr.c +2 -2
index 4ba3b7b4b110..4085e9d82dbb 100644
@@ -380,8 +380,8 @@ static void mtk_ethdr_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id mtk_ethdr_driver_dt_match[] = {
-	{ .compatible = "mediatek,mt8195-disp-ethdr"},
-	{},
+	{ .compatible = "mediatek,mt8195-disp-ethdr" },
+	{ }
 };
 
 MODULE_DEVICE_TABLE(of, mtk_ethdr_driver_dt_match);
drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c +2 -2
index c4fb4e209461..8b32dcfd9e29 100644
@@ -323,8 +323,8 @@ static void mtk_hdmi_ddc_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id mtk_hdmi_ddc_match[] = {
-	{ .compatible = "mediatek,mt8173-hdmi-ddc", },
-	{},
+	{ .compatible = "mediatek,mt8173-hdmi-ddc" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mtk_hdmi_ddc_match);
 
drivers/gpu/drm/mediatek/mtk_mdp_rdma.c +2 -2
index fa53511f461d..6009eef57df6 100644
@@ -331,8 +331,8 @@ static void mtk_mdp_rdma_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id mtk_mdp_rdma_driver_dt_match[] = {
-	{ .compatible = "mediatek,mt8195-vdo1-rdma", },
-	{},
+	{ .compatible = "mediatek,mt8195-vdo1-rdma" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mtk_mdp_rdma_driver_dt_match);
 
drivers/gpu/drm/meson/meson_drv.c +18 -10
index 920e43b93d09..28b390489f58 100644
@@ -473,7 +473,7 @@ static const struct of_device_id components_dev_match[] = {
 	{ .compatible = "amlogic,meson-gxl-dw-hdmi" },
 	{ .compatible = "amlogic,meson-gxm-dw-hdmi" },
 	{ .compatible = "amlogic,meson-g12a-dw-hdmi" },
-	{}
+	{ }
 };
 
 static int meson_drv_probe(struct platform_device *pdev)
@@ -542,15 +542,23 @@ static struct meson_drm_match_data meson_drm_g12a_data = {
 };
 
 static const struct of_device_id dt_match[] = {
-	{ .compatible = "amlogic,meson-gxbb-vpu",
-	  .data       = (void *)&meson_drm_gxbb_data },
-	{ .compatible = "amlogic,meson-gxl-vpu",
-	  .data       = (void *)&meson_drm_gxl_data },
-	{ .compatible = "amlogic,meson-gxm-vpu",
-	  .data       = (void *)&meson_drm_gxm_data },
-	{ .compatible = "amlogic,meson-g12a-vpu",
-	  .data       = (void *)&meson_drm_g12a_data },
-	{}
+	{
+		.compatible = "amlogic,meson-gxbb-vpu",
+		.data = (void *)&meson_drm_gxbb_data,
+	},
+	{
+		.compatible = "amlogic,meson-gxl-vpu",
+		.data = (void *)&meson_drm_gxl_data,
+	},
+	{
+		.compatible = "amlogic,meson-gxm-vpu",
+		.data = (void *)&meson_drm_gxm_data,
+	},
+	{
+		.compatible = "amlogic,meson-g12a-vpu",
+		.data = (void *)&meson_drm_g12a_data,
+	},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, dt_match);
 
drivers/gpu/drm/meson/meson_dw_hdmi.c +16 -8
index eb33c70f29c3..e49404ae9132 100644
@@ -845,14 +845,22 @@ static const struct dev_pm_ops meson_dw_hdmi_pm_ops = {
 };
 
 static const struct of_device_id meson_dw_hdmi_of_table[] = {
-	{ .compatible = "amlogic,meson-gxbb-dw-hdmi",
-	  .data = &meson_dw_hdmi_gxbb_data },
-	{ .compatible = "amlogic,meson-gxl-dw-hdmi",
-	  .data = &meson_dw_hdmi_gxl_data },
-	{ .compatible = "amlogic,meson-gxm-dw-hdmi",
-	  .data = &meson_dw_hdmi_gxl_data },
-	{ .compatible = "amlogic,meson-g12a-dw-hdmi",
-	  .data = &meson_dw_hdmi_g12a_data },
+	{
+		.compatible = "amlogic,meson-gxbb-dw-hdmi",
+		.data = &meson_dw_hdmi_gxbb_data,
+	},
+	{
+		.compatible = "amlogic,meson-gxl-dw-hdmi",
+		.data = &meson_dw_hdmi_gxl_data,
+	},
+	{
+		.compatible = "amlogic,meson-gxm-dw-hdmi",
+		.data = &meson_dw_hdmi_gxl_data,
+	},
+	{
+		.compatible = "amlogic,meson-g12a-dw-hdmi",
+		.data = &meson_dw_hdmi_g12a_data,
+	},
 	{ }
 };
 MODULE_DEVICE_TABLE(of, meson_dw_hdmi_of_table);
drivers/gpu/drm/meson/meson_dw_mipi_dsi.c +1 -1
index c27a64bd1529..9f037a5bd7f3 100644
@@ -335,7 +335,7 @@ static void meson_dw_mipi_dsi_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id meson_dw_mipi_dsi_of_table[] = {
-	{ .compatible = "amlogic,meson-g12a-dw-mipi-dsi", },
+	{ .compatible = "amlogic,meson-g12a-dw-mipi-dsi" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, meson_dw_mipi_dsi_of_table);
drivers/gpu/drm/msm/adreno/adreno_device.c +1 -1
index 7108d4aa59b5..1899835a0e5c 100644
@@ -302,7 +302,7 @@ static const struct of_device_id dt_match[] = {
 	{ .compatible = "amd,imageon" },
 	/* for backwards compat w/ downstream kgsl DT files: */
 	{ .compatible = "qcom,kgsl-3d0" },
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, dt_match);
 
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +35 -35

76 lines not on this page · raw message

drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c +3 -3
index ff6751b2ae62..b2012cfe0528 100644
@@ -896,10 +896,10 @@ static const struct dev_pm_ops mdp5_pm_ops = {
 };
 
 static const struct of_device_id mdp5_dt_match[] = {
-	{ .compatible = "qcom,mdp5", },
+	{ .compatible = "qcom,mdp5" },
 	/* to support downstream DT files */
-	{ .compatible = "qcom,mdss_mdp", },
-	{}
+	{ .compatible = "qcom,mdss_mdp" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mdp5_dt_match);
 
drivers/gpu/drm/msm/dp/dp_display.c +1 -1
index c0c150e2c575..f54c8ea6b9eb 100644
@@ -180,7 +180,7 @@ static const struct of_device_id msm_dp_dt_match[] = {
 	{ .compatible = "qcom,sm8350-dp", .data = &msm_dp_desc_sc7180 },
 	{ .compatible = "qcom,sm8650-dp", .data = &msm_dp_desc_sm8650 },
 	{ .compatible = "qcom,x1e80100-dp", .data = &msm_dp_desc_x1e80100 },
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, msm_dp_dt_match);
 
drivers/gpu/drm/msm/dsi/dsi.c +1 -1
index 090726be5061..c9d9c297b8ef 100644
@@ -198,7 +198,7 @@ static const struct of_device_id dt_match[] = {
 
 	/* Deprecated, don't use */
 	{ .compatible = "qcom,dsi-ctrl-6g-qcm2290" },
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, dt_match);
 
drivers/gpu/drm/msm/hdmi/hdmi.c +1 -1
index 133b4b1f17ab..e23d7ad452b1 100644
@@ -455,7 +455,7 @@ static const struct of_device_id msm_hdmi_dt_match[] = {
 	{ .compatible = "qcom,hdmi-tx-8974", .data = &hdmi_tx_8974_config },
 	{ .compatible = "qcom,hdmi-tx-8960", .data = &hdmi_tx_8960_config },
 	{ .compatible = "qcom,hdmi-tx-8660", .data = &hdmi_tx_8960_config },
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, msm_hdmi_dt_match);
 
drivers/gpu/drm/msm/hdmi/hdmi_phy.c +25 -13
index c805724dfda7..b2872890c21b 100644
@@ -204,19 +204,31 @@ static void msm_hdmi_phy_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id msm_hdmi_phy_dt_match[] = {
-	{ .compatible = "qcom,hdmi-phy-8660",
-	  .data = &msm_hdmi_phy_8x60_cfg },
-	{ .compatible = "qcom,hdmi-phy-8960",
-	  .data = &msm_hdmi_phy_8960_cfg },
-	{ .compatible = "qcom,hdmi-phy-8974",
-	  .data = &msm_hdmi_phy_8x74_cfg },
-	{ .compatible = "qcom,hdmi-phy-8084",
-	  .data = &msm_hdmi_phy_8x74_cfg },
-	{ .compatible = "qcom,hdmi-phy-8996",
-	  .data = &msm_hdmi_phy_8996_cfg },
-	{ .compatible = "qcom,hdmi-phy-8998",
-	  .data = &msm_hdmi_phy_8998_cfg },
-	{}
+	{
+		.compatible = "qcom,hdmi-phy-8660",
+		.data = &msm_hdmi_phy_8x60_cfg,
+	},
+	{
+		.compatible = "qcom,hdmi-phy-8960",
+		.data = &msm_hdmi_phy_8960_cfg,
+	},
+	{
+		.compatible = "qcom,hdmi-phy-8974",
+		.data = &msm_hdmi_phy_8x74_cfg,
+	},
+	{
+		.compatible = "qcom,hdmi-phy-8084",
+		.data = &msm_hdmi_phy_8x74_cfg,
+	},
+	{
+		.compatible = "qcom,hdmi-phy-8996",
+		.data = &msm_hdmi_phy_8996_cfg,
+	},
+	{
+		.compatible = "qcom,hdmi-phy-8998",
+		.data = &msm_hdmi_phy_8998_cfg,
+	},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, msm_hdmi_phy_dt_match);
 
drivers/gpu/drm/msm/msm_drv.c +1 -1
index 3675df277f6a..51c4753cd852 100644
@@ -1091,7 +1091,7 @@ static const struct of_device_id msm_gpu_match[] = {
 	{ .compatible = "qcom,adreno-3xx" },
 	{ .compatible = "amd,imageon" },
 	{ .compatible = "qcom,kgsl-3d0" },
-	{ },
+	{ }
 };
 
 static int add_gpu_components(struct device *dev,
drivers/gpu/drm/msm/msm_mdss.c +1 -1
index 259d362475c8..5dc7b670b8ad 100644
@@ -572,7 +572,7 @@ static const struct of_device_id mdss_dt_match[] = {
 	{ .compatible = "qcom,sm8750-mdss", .data = &data_57k },
 	/* TODO: x1e8: Add reg_bus_bw with real value */
 	{ .compatible = "qcom,x1e80100-mdss", .data = &data_153k6 },
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mdss_dt_match);
 
drivers/gpu/drm/mxsfb/mxsfb_drv.c +3 -3
index 66dca07d090f..cd5f556a24f3 100644
@@ -381,9 +381,9 @@ static const struct drm_driver mxsfb_driver = {
 };
 
 static const struct of_device_id mxsfb_dt_ids[] = {
-	{ .compatible = "fsl,imx23-lcdif", .data = &mxsfb_devdata[MXSFB_V3], },
-	{ .compatible = "fsl,imx28-lcdif", .data = &mxsfb_devdata[MXSFB_V4], },
-	{ .compatible = "fsl,imx6sx-lcdif", .data = &mxsfb_devdata[MXSFB_V6], },
+	{ .compatible = "fsl,imx23-lcdif", .data = &mxsfb_devdata[MXSFB_V3] },
+	{ .compatible = "fsl,imx28-lcdif", .data = &mxsfb_devdata[MXSFB_V4] },
+	{ .compatible = "fsl,imx6sx-lcdif", .data = &mxsfb_devdata[MXSFB_V6] },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, mxsfb_dt_ids);
drivers/gpu/drm/nouveau/nouveau_drm.c +1 -1
index 30311688618c..9bcf37a81584 100644
@@ -1447,7 +1447,7 @@ nouveau_drm_pci_table[] = {
 		.class = PCI_BASE_CLASS_DISPLAY << 16,
 		.class_mask  = 0xff << 16,
 	},
-	{}
+	{ }
 };
 
 static void nouveau_display_options(void)
drivers/gpu/drm/omapdrm/dss/dispc.c +1 -1
index 2a23b4c59c29..b96d1c1c76c4 100644
@@ -4580,7 +4580,7 @@ static const struct of_device_id dispc_of_match[] = {
 	{ .compatible = "ti,omap4-dispc", .data = &omap44xx_dispc_feats },
 	{ .compatible = "ti,omap5-dispc", .data = &omap54xx_dispc_feats },
 	{ .compatible = "ti,dra7-dispc",  .data = &omap54xx_dispc_feats },
-	{},
+	{ }
 };
 
 static const struct soc_device_attribute dispc_soc_devices[] = {
drivers/gpu/drm/omapdrm/dss/dsi.c +4 -4
index 838b34ea7e31..fa915343c45f 100644
@@ -4853,10 +4853,10 @@ static const struct dsi_of_data dsi_of_data_omap5 = {
 };
 
 static const struct of_device_id dsi_of_match[] = {
-	{ .compatible = "ti,omap3-dsi", .data = &dsi_of_data_omap36xx, },
-	{ .compatible = "ti,omap4-dsi", .data = &dsi_of_data_omap4, },
-	{ .compatible = "ti,omap5-dsi", .data = &dsi_of_data_omap5, },
-	{},
+	{ .compatible = "ti,omap3-dsi", .data = &dsi_of_data_omap36xx },
+	{ .compatible = "ti,omap4-dsi", .data = &dsi_of_data_omap4 },
+	{ .compatible = "ti,omap5-dsi", .data = &dsi_of_data_omap5 },
+	{ }
 };
 
 static const struct soc_device_attribute dsi_soc_devices[] = {
drivers/gpu/drm/omapdrm/dss/dss.c +1 -1
index 53b7938a3d05..fbefb2cd0b52 100644
@@ -1291,7 +1291,7 @@ static const struct of_device_id dss_of_match[] = {
 	{ .compatible = "ti,omap4-dss", .data = &omap44xx_dss_feats },
 	{ .compatible = "ti,omap5-dss", .data = &omap54xx_dss_feats },
 	{ .compatible = "ti,dra7-dss",  .data = &dra7xx_dss_feats },
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, dss_of_match);
 
drivers/gpu/drm/omapdrm/dss/hdmi4.c +2 -2
index ea0d749265d1..5516a3efc266 100644
@@ -861,8 +861,8 @@ static void hdmi4_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id hdmi_of_match[] = {
-	{ .compatible = "ti,omap4-hdmi", },
-	{},
+	{ .compatible = "ti,omap4-hdmi" },
+	{ }
 };
 
 struct platform_driver omapdss_hdmi4hw_driver = {
drivers/gpu/drm/omapdrm/dss/hdmi5.c +3 -3
index 216281a884bd..e328e6715694 100644
@@ -830,9 +830,9 @@ static void hdmi5_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id hdmi_of_match[] = {
-	{ .compatible = "ti,omap5-hdmi", },
-	{ .compatible = "ti,dra7-hdmi", },
-	{},
+	{ .compatible = "ti,omap5-hdmi" },
+	{ .compatible = "ti,dra7-hdmi" },
+	{ }
 };
 
 struct platform_driver omapdss_hdmi5hw_driver = {
drivers/gpu/drm/omapdrm/dss/venc.c +4 -4
index 5416c668a205..a68a12a613f5 100644
@@ -904,10 +904,10 @@ static const struct dev_pm_ops venc_pm_ops = {
 };
 
 static const struct of_device_id venc_of_match[] = {
-	{ .compatible = "ti,omap2-venc", },
-	{ .compatible = "ti,omap3-venc", },
-	{ .compatible = "ti,omap4-venc", },
-	{},
+	{ .compatible = "ti,omap2-venc" },
+	{ .compatible = "ti,omap3-venc" },
+	{ .compatible = "ti,omap4-venc" },
+	{ }
 };
 
 struct platform_driver omap_venchw_driver = {
drivers/gpu/drm/omapdrm/omap_dmm_tiler.c +1 -1
index ee940a6833ff..011ae8aff3ec 100644
@@ -1205,7 +1205,7 @@ static const struct of_device_id dmm_of_match[] = {
 		.compatible = "ti,omap5-dmm",
 		.data = &dmm_omap5_platform_data,
 	},
-	{},
+	{ }
 };
 #endif
 
drivers/gpu/drm/panel/panel-arm-versatile.c +2 -2
index cffee9838324..69646e70740d 100644
@@ -355,8 +355,8 @@ static int versatile_panel_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id versatile_panel_match[] = {
-	{ .compatible = "arm,versatile-tft-panel", },
-	{},
+	{ .compatible = "arm,versatile-tft-panel" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, versatile_panel_match);
 
drivers/gpu/drm/panel/panel-boe-himax8279d.c +1 -3
index facf37bd1c14..f96ad0f3816f 100644
@@ -818,9 +818,7 @@ static const struct of_device_id panel_of_match[] = {
 		.compatible = "boe,himax8279d10p",
 		.data = &boe_himax8279d10p_panel_desc,
 	},
-	{
-		/* sentinel */
-	}
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, panel_of_match);
 
drivers/gpu/drm/panel/panel-boe-th101mb31ig002-28a.c +2 -2
index c5f18e310b43..445ee59507eb 100644
@@ -406,11 +406,11 @@ static int boe_th101mb31ig002_dsi_probe(struct mipi_dsi_device *dsi)
 static const struct of_device_id boe_th101mb31ig002_of_match[] = {
 	{
 		.compatible = "boe,th101mb31ig002-28a",
-		.data = &boe_th101mb31ig002_desc
+		.data = &boe_th101mb31ig002_desc,
 	},
 	{
 		.compatible = "starry,er88577",
-		.data = &starry_er88577_desc
+		.data = &starry_er88577_desc,
 	},
 	{ /* sentinel */ }
 };
drivers/gpu/drm/panel/panel-boe-tv101wum-nl6.c +24 -23

53 lines not on this page · raw message

drivers/gpu/drm/panel/panel-dsi-cm.c +1 -1
index 99ccf3badde7..2747821a2241 100644
@@ -630,7 +630,7 @@ static const struct of_device_id dsicm_of_match[] = {
 	{ .compatible = "tpo,taal", .data = &taal_data },
 	{ .compatible = "nokia,himalaya", .data = &himalaya_data },
 	{ .compatible = "motorola,droid4-panel", .data = &droid4_data },
-	{},
+	{ }
 };
 
 MODULE_DEVICE_TABLE(of, dsicm_of_match);
drivers/gpu/drm/panel/panel-edp.c +2 -3
index 3e0bdae8e272..02796ce22b88 100644
@@ -1753,9 +1753,8 @@ static const struct of_device_id platform_of_match[] = {
 	}, {
 		.compatible = "sharp,lq123p1jx31",
 		.data = &sharp_lq123p1jx31,
-	}, {
-		/* sentinel */
-	}
+	},
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, platform_of_match);
 
drivers/gpu/drm/panel/panel-feixin-k101-im2ba02.c +1 -1
index c58d8fe0c384..b99b679219bc 100644
@@ -484,7 +484,7 @@ static int k101_im2ba02_dsi_probe(struct mipi_dsi_device *dsi)
 }
 
 static const struct of_device_id k101_im2ba02_of_match[] = {
-	{ .compatible = "feixin,k101-im2ba02", },
+	{ .compatible = "feixin,k101-im2ba02" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, k101_im2ba02_of_match);
drivers/gpu/drm/panel/panel-feiyang-fy07024di26a30d.c +1 -1
index af63441d194e..9a1d8b8828c4 100644
@@ -238,7 +238,7 @@ static int feiyang_dsi_probe(struct mipi_dsi_device *dsi)
 }
 
 static const struct of_device_id feiyang_of_match[] = {
-	{ .compatible = "feiyang,fy07024di26a30d", },
+	{ .compatible = "feiyang,fy07024di26a30d" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, feiyang_of_match);
drivers/gpu/drm/panel/panel-focaltech-ota7290b.c +2 -2
index bbc870b8fda8..2a2d148fb74a 100644
@@ -208,8 +208,8 @@ static int ota7290b_probe(struct mipi_dsi_device *dsi)
 }
 
 static const struct of_device_id ota7290b_of_match[] = {
-	{ .compatible = "waveshare,8.8-dsi-touch-a", },
-	{}
+	{ .compatible = "waveshare,8.8-dsi-touch-a" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, ota7290b_of_match);
 
drivers/gpu/drm/panel/panel-himax-hx83102.c +24 -23

53 lines not on this page · raw message

drivers/gpu/drm/panel/panel-ilitek-ili9882t.c +9 -8
index bea5ca70c775..3dd62bc17156 100644
@@ -1075,14 +1075,15 @@ static int ili9882t_probe(struct mipi_dsi_device *dsi)
 }
 
 static const struct of_device_id ili9882t_of_match[] = {
-	{ .compatible = "raspberrypi,dsi-10inch",
-	  .data = &rpi_10inch_desc
-	},
-	{ .compatible = "starry,ili9882t",
-	  .data = &starry_ili9882t_desc
-	},
-	{ .compatible = "tianma,tl121bvms07-00",
-	  .data = &tianma_tl121bvms07_desc
+	{
+		.compatible = "raspberrypi,dsi-10inch",
+		.data = &rpi_10inch_desc,
+	}, {
+		.compatible = "starry,ili9882t",
+		.data = &starry_ili9882t_desc,
+	}, {
+		.compatible = "tianma,tl121bvms07-00",
+		.data = &tianma_tl121bvms07_desc,
 	},
 	{ /* sentinel */ }
 };
drivers/gpu/drm/panel/panel-innolux-p079zca.c +6 -5
index 2b3a90984d24..575f7a8515b3 100644
@@ -354,11 +354,12 @@ static const struct drm_panel_funcs innolux_panel_funcs = {
 };
 
 static const struct of_device_id innolux_of_match[] = {
-	{ .compatible = "innolux,p079zca",
-	  .data = &innolux_p079zca_panel_desc
-	},
-	{ .compatible = "innolux,p097pfg",
-	  .data = &innolux_p097pfg_panel_desc
+	{
+		.compatible = "innolux,p079zca",
+		.data = &innolux_p079zca_panel_desc,
+	}, {
+		.compatible = "innolux,p097pfg",
+		.data = &innolux_p097pfg_panel_desc,
 	},
 	{ }
 };
drivers/gpu/drm/panel/panel-jadard-jd9365da-h3.c +15 -15
index b6fadab7cfec..49e7947459b2 100644
@@ -3259,63 +3259,63 @@ static int jadard_dsi_probe(struct mipi_dsi_device *dsi)
 static const struct of_device_id jadard_of_match[] = {
 	{
 		.compatible = "anbernic,rg-ds-display-bottom",
-		.data = &anbernic_rgds_display_desc
+		.data = &anbernic_rgds_display_desc,
 	},
 	{
 		.compatible = "anbernic,rg-ds-display-top",
-		.data = &anbernic_rgds_display_desc
+		.data = &anbernic_rgds_display_desc,
 	},
 	{
 		.compatible = "chongzhou,cz101b4001",
-		.data = &cz101b4001_desc
+		.data = &cz101b4001_desc,
 	},
 	{
 		.compatible = "dcltek,dt300250",
-		.data = &dcltek_dt300250_desc
+		.data = &dcltek_dt300250_desc,
 	},
 	{
 		.compatible = "kingdisplay,kd101ne3-40ti",
-		.data = &kingdisplay_kd101ne3_40ti_desc
+		.data = &kingdisplay_kd101ne3_40ti_desc,
 	},
 	{
 		.compatible = "melfas,lmfbx101117480",
-		.data = &melfas_lmfbx101117480_desc
+		.data = &melfas_lmfbx101117480_desc,
 	},
 	{
 		.compatible = "radxa,display-10hd-ad001",
-		.data = &cz101b4001_desc
+		.data = &cz101b4001_desc,
 	},
 	{
 		.compatible = "radxa,display-8hd-ad002",
-		.data = &radxa_display_8hd_ad002_desc
+		.data = &radxa_display_8hd_ad002_desc,
 	},
 	{
 		.compatible = "taiguanck,xti05101-01a",
-		.data = &taiguan_xti05101_01a_desc
+		.data = &taiguan_xti05101_01a_desc,
 	},
 	{
 		.compatible = "waveshare,3.4-dsi-touch-c",
-		.data = &waveshare_3_4_inch_c_desc
+		.data = &waveshare_3_4_inch_c_desc,
 	},
 	{
 		.compatible = "waveshare,4.0-dsi-touch-c",
-		.data = &waveshare_4_0_inch_c_desc
+		.data = &waveshare_4_0_inch_c_desc,
 	},
 	{
 		.compatible = "waveshare,8.0-dsi-touch-a",
-		.data = &waveshare_8_0_inch_a_desc
+		.data = &waveshare_8_0_inch_a_desc,
 	},
 	{
 		.compatible = "waveshare,9.0-dsi-touch-b",
-		.data = &waveshare_9_0_inch_b_desc
+		.data = &waveshare_9_0_inch_b_desc,
 	},
 	{
 		.compatible = "waveshare,10.1-dsi-touch-a",
-		.data = &waveshare_10_1_inch_a_desc
+		.data = &waveshare_10_1_inch_a_desc,
 	},
 	{
 		.compatible = "waveshare,10.1-dsi-touch-b",
-		.data = &waveshare_10_1_inch_b_desc
+		.data = &waveshare_10_1_inch_b_desc,
 	},
 	{ /* sentinel */ }
 };
drivers/gpu/drm/panel/panel-jdi-lpm102a188a.c +1 -1
index ea975170faff..29da7b9f63ac 100644
@@ -319,7 +319,7 @@ static const struct drm_panel_funcs jdi_panel_funcs = {
 };
 
 static const struct of_device_id jdi_of_match[] = {
-	{ .compatible = "jdi,lpm102a188a", },
+	{ .compatible = "jdi,lpm102a188a" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, jdi_of_match);
drivers/gpu/drm/panel/panel-jdi-lt070me05000.c +1 -1
index e91b41743bec..62c9deb83903 100644
@@ -302,7 +302,7 @@ static const struct drm_panel_funcs jdi_panel_funcs = {
 };
 
 static const struct of_device_id jdi_of_match[] = {
-	{ .compatible = "jdi,lt070me05000", },
+	{ .compatible = "jdi,lt070me05000" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, jdi_of_match);
drivers/gpu/drm/panel/panel-khadas-ts050.c +2 -2
index b3c56ed4589e..363fb02310ee 100644
@@ -793,8 +793,8 @@ static const struct drm_panel_funcs khadas_ts050_panel_funcs = {
 };
 
 static const struct of_device_id khadas_ts050_of_match[] = {
-	{ .compatible = "khadas,ts050",    .data = &ts050_panel_data, },
-	{ .compatible = "khadas,ts050v2",  .data = &ts050v2_panel_data, },
+	{ .compatible = "khadas,ts050",    .data = &ts050_panel_data },
+	{ .compatible = "khadas,ts050v2",  .data = &ts050v2_panel_data },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, khadas_ts050_of_match);
drivers/gpu/drm/panel/panel-kingdisplay-kd097d04.c +1 -1
index 6a3ecdcc1795..55fa8580ca0e 100644
@@ -298,7 +298,7 @@ static const struct drm_panel_funcs kingdisplay_panel_funcs = {
 };
 
 static const struct of_device_id kingdisplay_of_match[] = {
-	{ .compatible = "kingdisplay,kd097d04", },
+	{ .compatible = "kingdisplay,kd097d04" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, kingdisplay_of_match);
drivers/gpu/drm/panel/panel-lg-lb035q02.c +2 -2
index 30590aabd9d3..921d464ffbb1 100644
@@ -210,8 +210,8 @@ static void lb035q02_remove(struct spi_device *spi)
 }
 
 static const struct of_device_id lb035q02_of_match[] = {
-	{ .compatible = "lgphilips,lb035q02", },
-	{ /* sentinel */ },
+	{ .compatible = "lgphilips,lb035q02" },
+	{ /* sentinel */ }
 };
 
 MODULE_DEVICE_TABLE(of, lb035q02_of_match);
drivers/gpu/drm/panel/panel-lg-sw43408.c +2 -2
index 822318f546ef..aa3e52d0ea12 100644
@@ -224,8 +224,8 @@ static const struct drm_panel_funcs sw43408_funcs = {
 };
 
 static const struct of_device_id sw43408_of_match[] = {
-	{ .compatible = "lg,sw43408", }, /* legacy */
-	{ .compatible = "lg,sw43408-lh546wf1-ed01", },
+	{ .compatible = "lg,sw43408" }, /* legacy */
+	{ .compatible = "lg,sw43408-lh546wf1-ed01" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, sw43408_of_match);
drivers/gpu/drm/panel/panel-lincolntech-lcd197.c +1 -1
index 677e86fe9d9d..dc9655bb4908 100644
@@ -228,7 +228,7 @@ static int lincoln_lcd197_panel_probe(struct mipi_dsi_device *dsi)
 }
 
 static const struct of_device_id lincoln_lcd197_of_match[] = {
-	{ .compatible = "lincolntech,lcd197", },
+	{ .compatible = "lincolntech,lcd197" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, lincoln_lcd197_of_match);
drivers/gpu/drm/panel/panel-lvds.c +2 -2
index 37f7498449ec..7339f34648c2 100644
@@ -234,8 +234,8 @@ static void panel_lvds_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id panel_lvds_of_table[] = {
-	{ .compatible = "panel-lvds", },
-	{ /* Sentinel */ },
+	{ .compatible = "panel-lvds" },
+	{ /* Sentinel */ }
 };
 
 MODULE_DEVICE_TABLE(of, panel_lvds_of_table);
drivers/gpu/drm/panel/panel-magnachip-d53e6ea8966.c +1 -1
index e332ec685484..2ffc2170dfda 100644
@@ -494,7 +494,7 @@ static const struct d53e6ea8966_panel_info ams495qa01_info = {
 
 static const struct of_device_id d53e6ea8966_match[] = {
 	{ .compatible = "samsung,ams495qa01", .data = &ams495qa01_info },
-	{ /* sentinel */ },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, d53e6ea8966_match);
 
drivers/gpu/drm/panel/panel-nec-nl8048hl11.c +2 -2
index bbd70572fe0c..b1b8ab4780c2 100644
@@ -220,8 +220,8 @@ static void nl8048_remove(struct spi_device *spi)
 }
 
 static const struct of_device_id nl8048_of_match[] = {
-	{ .compatible = "nec,nl8048hl11", },
-	{ /* sentinel */ },
+	{ .compatible = "nec,nl8048hl11" },
+	{ /* sentinel */ }
 };
 
 MODULE_DEVICE_TABLE(of, nl8048_of_match);
drivers/gpu/drm/panel/panel-novatek-nt35950.c +1 -1
index 94aa6489d99f..a8bfac03c081 100644
@@ -589,7 +589,7 @@ static const struct nt35950_panel_desc sharp_ls055d1sx04 = {
 
 static const struct of_device_id nt35950_of_match[] = {
 	{ .compatible = "sharp,ls055d1sx04", .data = &sharp_ls055d1sx04 },
-	{  }
+	{ }
 };
 MODULE_DEVICE_TABLE(of, nt35950_of_match);
 
drivers/gpu/drm/panel/panel-novatek-nt36523.c +1 -1
index 34b9123d3fd7..c86bf9ff5265 100644
@@ -1254,7 +1254,7 @@ static const struct of_device_id nt36523_of_match[] = {
 		.compatible = "xiaomi,elish-csot-nt36523",
 		.data = &elish_csot_desc,
 	},
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, nt36523_of_match);
 
drivers/gpu/drm/panel/panel-novatek-nt36672a.c +1 -1
index a5c1b1b8113b..d9b80c44d0c9 100644
@@ -950,7 +950,7 @@ static const struct of_device_id panel_nt36672a_match[] = {
 	{ .compatible = "tianma,tl063fvmc43-02", .data = &tianmaplus_e7t_tulip_panel_desc },
 	{ .compatible = "tianma,tl063fvmca01-00", .data = &tianma_lavender_panel_desc },
 	{ .compatible = "txdkj,txdi600yanpa-43v3", .data = &txd_x00td_panel_desc },
-	{ },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, panel_nt36672a_match);
 
drivers/gpu/drm/panel/panel-novatek-nt36850.c +1 -1
index 0d1eeba539db..a04b2835fd01 100644
@@ -332,7 +332,7 @@ static const struct of_device_id nt36850_of_match[] = {
 		.compatible = "truly,wqhd60-nt36850",
 		.data = &truly_wqhd_desc,
 	},
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, nt36850_of_match);
 
drivers/gpu/drm/panel/panel-novatek-nt37801.c +1 -1
index 4db560b66f4d..3720c66e97c1 100644
@@ -294,7 +294,7 @@ static int novatek_nt37801_probe(struct mipi_dsi_device *dsi)
 
 static const struct of_device_id novatek_nt37801_of_match[] = {
 	{ .compatible = "novatek,nt37801" },
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, novatek_nt37801_of_match);
 
drivers/gpu/drm/panel/panel-osd-osd101t2587-53ts.c +2 -3
index ae6b3ae5a120..a9c43e908d8d 100644
@@ -115,9 +115,8 @@ static const struct of_device_id osd101t2587_of_match[] = {
 	{
 		.compatible = "osddisplays,osd101t2587-53ts",
 		.data = &default_mode_osd101t2587,
-	}, {
-		/* sentinel */
-	}
+	},
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, osd101t2587_of_match);
 
drivers/gpu/drm/panel/panel-panasonic-vvx10f034n00.c +1 -1
index c00b1c44611a..98127e52462c 100644
@@ -152,7 +152,7 @@ static const struct drm_panel_funcs wuxga_nt_panel_funcs = {
 };
 
 static const struct of_device_id wuxga_nt_of_match[] = {
-	{ .compatible = "panasonic,vvx10f034n00", },
+	{ .compatible = "panasonic,vvx10f034n00" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, wuxga_nt_of_match);
drivers/gpu/drm/panel/panel-raydium-rm67191.c +1 -1
index 8564cb3984bb..07968506c4a6 100644
@@ -598,7 +598,7 @@ static int rad_panel_probe(struct mipi_dsi_device *dsi)
 }
 
 static const struct of_device_id rad_of_match[] = {
-	{ .compatible = "raydium,rm67191", },
+	{ .compatible = "raydium,rm67191" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, rad_of_match);
drivers/gpu/drm/panel/panel-renesas-r63419.c +1 -1
index ff3846d574e5..2e5881b93d77 100644
@@ -332,7 +332,7 @@ static const struct of_device_id renesas_r63419_of_match[] = {
 		.compatible = "ayaneo,wt0630-2k",
 		.data = &wt0630_desc,
 	},
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, renesas_r63419_of_match);
 
drivers/gpu/drm/panel/panel-ronbo-rb070d30.c +1 -1
index 6ff7985b4337..518a8e75e19a 100644
@@ -219,7 +219,7 @@ static int rb070d30_panel_dsi_probe(struct mipi_dsi_device *dsi)
 
 static const struct of_device_id rb070d30_panel_of_match[] = {
 	{ .compatible = "ronbo,rb070d30" },
-	{ /* sentinel */ },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, rb070d30_panel_of_match);
 
drivers/gpu/drm/panel/panel-samsung-atna33xc20.c +1 -1
index 20ec27d2d6c2..1269cdcaeece 100644
@@ -333,7 +333,7 @@ static void atana33xc20_remove(struct dp_aux_ep_device *aux_ep)
 }
 
 static const struct of_device_id atana33xc20_dt_match[] = {
-	{ .compatible = "samsung,atna33xc20", },
+	{ .compatible = "samsung,atna33xc20" },
 	{ /* sentinal */ }
 };
 MODULE_DEVICE_TABLE(of, atana33xc20_dt_match);
drivers/gpu/drm/panel/panel-samsung-db7430.c +3 -3
index 2a1fd9eb4698..258dd495e877 100644
@@ -321,14 +321,14 @@ static void db7430_remove(struct spi_device *spi)
  * so list the different variants here and add per-variant data if needed.
  */
 static const struct of_device_id db7430_match[] = {
-	{ .compatible = "samsung,lms397kf04", },
-	{},
+	{ .compatible = "samsung,lms397kf04" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, db7430_match);
 
 static const struct spi_device_id db7430_ids[] = {
 	{ .name = "lms397kf04" },
-	{ },
+	{ }
 };
 MODULE_DEVICE_TABLE(spi, db7430_ids);
 
drivers/gpu/drm/panel/panel-samsung-s6d27a1.c +2 -2
index 300dc19bd9d1..d21fc70ff4f8 100644
@@ -298,8 +298,8 @@ static void s6d27a1_remove(struct spi_device *spi)
 }
 
 static const struct of_device_id s6d27a1_match[] = {
-	{ .compatible = "samsung,s6d27a1", },
-	{ /* sentinel */ },
+	{ .compatible = "samsung,s6d27a1" },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, s6d27a1_match);
 
drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c +3 -3
index 5a4cfb21e2fd..a673304fa265 100644
@@ -452,15 +452,15 @@ static int s6d7aa0_probe(struct mipi_dsi_device *dsi)
 static const struct of_device_id s6d7aa0_of_match[] = {
 	{
 		.compatible = "samsung,lsl080al02",
-		.data = &s6d7aa0_lsl080al02_desc
+		.data = &s6d7aa0_lsl080al02_desc,
 	},
 	{
 		.compatible = "samsung,lsl080al03",
-		.data = &s6d7aa0_lsl080al03_desc
+		.data = &s6d7aa0_lsl080al03_desc,
 	},
 	{
 		.compatible = "samsung,ltl101at01",
-		.data = &s6d7aa0_ltl101at01_desc
+		.data = &s6d7aa0_ltl101at01_desc,
 	},
 	{ /* sentinel */ }
 };
drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams427ap24.c +1 -1
index b48a2f9578e7..139beae3efbc 100644
@@ -737,7 +737,7 @@ static int s6e88a0_ams427ap24_probe(struct mipi_dsi_device *dsi)
 
 static const struct of_device_id s6e88a0_ams427ap24_of_match[] = {
 	{ .compatible = "samsung,s6e88a0-ams427ap24" },
-	{ /* sentinel */ },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, s6e88a0_ams427ap24_of_match);
 
drivers/gpu/drm/panel/panel-samsung-s6e88a0-ams452ef01.c +1 -1
index 2178e03e4772..bafa3dcbc92d 100644
@@ -211,7 +211,7 @@ static int s6e88a0_ams452ef01_probe(struct mipi_dsi_device *dsi)
 
 static const struct of_device_id s6e88a0_ams452ef01_of_match[] = {
 	{ .compatible = "samsung,s6e88a0-ams452ef01" },
-	{ /* sentinel */ },
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, s6e88a0_ams452ef01_of_match);
 
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c +2 -3
index 0935d83ee2db..ac0cd2c01dca 100644
@@ -273,9 +273,8 @@ static const struct of_device_id platform_of_match[] = {
 	{
 		.compatible = "sii,43wvf1g",
 		.data = &seiko_43wvf1g,
-	}, {
-		/* sentinel */
-	}
+	},
+	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, platform_of_match);
 
drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c +1 -1
index d159b0e4fdb6..173812707d6d 100644
@@ -264,7 +264,7 @@ static const struct drm_panel_funcs sharp_panel_funcs = {
 };
 
 static const struct of_device_id sharp_of_match[] = {
-	{ .compatible = "sharp,lq101r1sx01", },
+	{ .compatible = "sharp,lq101r1sx01" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, sharp_of_match);
drivers/gpu/drm/panel/panel-sharp-ls037v7dw01.c +2 -2
index 938beac4655d..30df80fcae80 100644
@@ -197,8 +197,8 @@ static void ls037v7dw01_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id ls037v7dw01_of_match[] = {
-	{ .compatible = "sharp,ls037v7dw01", },
-	{ /* sentinel */ },
+	{ .compatible = "sharp,ls037v7dw01" },
+	{ /* sentinel */ }
 };
 
 MODULE_DEVICE_TABLE(of, ls037v7dw01_of_match);
drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c +1 -1
index 5077893dab7c..8a27afe5f58c 100644
@@ -240,7 +240,7 @@ static int sharp_nt_panel_probe(struct mipi_dsi_device *dsi)
 }
 
 static const struct of_device_id sharp_nt_of_match[] = {
-	{ .compatible = "sharp,ls043t1le01-qhd", },
+	{ .compatible = "sharp,ls043t1le01-qhd" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, sharp_nt_of_match);
drivers/gpu/drm/panel/panel-simple.c +34 -36

164 lines not on this page · raw message

drivers/gpu/drm/panel/panel-sitronix-st7789v.c +13 -5
index fb6cd9081d3c..8ad5b8ee1d84 100644
@@ -673,11 +673,19 @@ static const struct spi_device_id st7789v_spi_id[] = {
 MODULE_DEVICE_TABLE(spi, st7789v_spi_id);
 
 static const struct of_device_id st7789v_of_match[] = {
-	{ .compatible = "sitronix,st7789v", .data = &default_panel },
-	{ .compatible = "inanbo,t28cp45tn89-v17", .data = &t28cp45tn89_panel },
-	{ .compatible = "edt,et028013dma", .data = &et028013dma_panel },
-	{ .compatible = "jasonic,jt240mhqs-hwt-ek-e3",
-	  .data = &jt240mhqs_hwt_ek_e3_panel },
+	{
+		.compatible = "sitronix,st7789v",
+		.data = &default_panel },
+	{
+		.compatible = "inanbo,t28cp45tn89-v17",
+		.data = &t28cp45tn89_panel },
+	{
+		.compatible = "edt,et028013dma",
+		.data = &et028013dma_panel },
+	{
+		.compatible = "jasonic,jt240mhqs-hwt-ek-e3",
+		.data = &jt240mhqs_hwt_ek_e3_panel,
+	},
 	{ }
 };
 MODULE_DEVICE_TABLE(of, st7789v_of_match);
drivers/gpu/drm/panel/panel-sony-acx565akm.c +2 -2
index 7e5e69cc9f6e..e7f6dd17b5e6 100644
@@ -652,8 +652,8 @@ static void acx565akm_remove(struct spi_device *spi)
 }
 
 static const struct of_device_id acx565akm_of_match[] = {
-	{ .compatible = "sony,acx565akm", },
-	{ /* sentinel */ },
+	{ .compatible = "sony,acx565akm" },
+	{ /* sentinel */ }
 };
 
 MODULE_DEVICE_TABLE(of, acx565akm_of_match);
drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c +1 -1
index fe42bee14134..ec0eb6450fec 100644
@@ -245,7 +245,7 @@ static const struct drm_panel_funcs stk_panel_funcs = {
 };
 
 static const struct of_device_id stk_of_match[] = {
-	{ .compatible = "startek,kd070fhfid015", },
+	{ .compatible = "startek,kd070fhfid015" },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, stk_of_match);
drivers/gpu/drm/panel/panel-summit.c +1 -1
index 8c5523d9793d..8589ed91d043 100644
@@ -107,7 +107,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(summit_pm_ops, summit_suspend,
 
 static const struct of_device_id summit_of_match[] = {
 	{ .compatible = "apple,summit" },
-	{},
+	{ }
 };
 
 MODULE_DEVICE_TABLE(of, summit_of_match);
drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c +1 -1
index 6f975acc0431..9b0ca4268fd2 100644
@@ -124,7 +124,7 @@ static const struct drm_panel_funcs tdo_tl070wsh30_panel_funcs = {
 };
 
 static const struct of_device_id tdo_tl070wsh30_of_match[] = {
-	{ .compatible = "tdo,tl070wsh30", },
+	{ .compatible = "tdo,tl070wsh30" },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, tdo_tl070wsh30_of_match);
drivers/gpu/drm/panel/panel-tpo-td028ttec1.c +3 -3
index 48c4cb68da44..625660b93e58 100644
@@ -355,10 +355,10 @@ static void td028ttec1_remove(struct spi_device *spi)
 }
 
 static const struct of_device_id td028ttec1_of_match[] = {
-	{ .compatible = "tpo,td028ttec1", },
+	{ .compatible = "tpo,td028ttec1" },
 	/* DT backward compatibility. */
-	{ .compatible = "toppoly,td028ttec1", },
-	{ /* sentinel */ },
+	{ .compatible = "toppoly,td028ttec1" },
+	{ /* sentinel */ }
 };
 
 MODULE_DEVICE_TABLE(of, td028ttec1_of_match);
drivers/gpu/drm/panel/panel-tpo-td043mtea1.c +2 -2
index 77c5ea2954b8..4ef4ad2a1e1e 100644
@@ -473,8 +473,8 @@ static void td043mtea1_remove(struct spi_device *spi)
 }
 
 static const struct of_device_id td043mtea1_of_match[] = {
-	{ .compatible = "tpo,td043mtea1", },
-	{ /* sentinel */ },
+	{ .compatible = "tpo,td043mtea1" },
+	{ /* sentinel */ }
 };
 
 MODULE_DEVICE_TABLE(of, td043mtea1_of_match);
drivers/gpu/drm/panel/panel-tpo-tpg110.c +3 -3
index 8fb3a94f6cd9..9d24f69a4a8f 100644
@@ -459,14 +459,14 @@ static void tpg110_remove(struct spi_device *spi)
 }
 
 static const struct of_device_id tpg110_match[] = {
-	{ .compatible = "tpo,tpg110", },
-	{},
+	{ .compatible = "tpo,tpg110" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, tpg110_match);
 
 static const struct spi_device_id tpg110_ids[] = {
 	{ .name = "tpg110" },
-	{ },
+	{ }
 };
 MODULE_DEVICE_TABLE(spi, tpg110_ids);
 
drivers/gpu/drm/panel/panel-visionox-r66451.c +1 -1
index db8137b5fe5b..a75b268b1d60 100644
@@ -316,7 +316,7 @@ static int visionox_r66451_probe(struct mipi_dsi_device *dsi)
 }
 
 static const struct of_device_id visionox_r66451_of_match[] = {
-	{.compatible = "visionox,r66451"},
+	{ .compatible = "visionox,r66451" },
 	{ /*sentinel*/ }
 };
 MODULE_DEVICE_TABLE(of, visionox_r66451_of_match);
drivers/gpu/drm/panel/panel-visionox-rm69299.c +8 -4
index 4309e04c35c4..630001619676 100644
@@ -414,10 +414,14 @@ const struct visionox_rm69299_panel_desc visionox_rm69299_shift_desc = {
 };
 
 static const struct of_device_id visionox_rm69299_of_match[] = {
-	{ .compatible = "visionox,rm69299-1080p-display",
-	  .data = &visionox_rm69299_1080p_display_desc },
-	{ .compatible = "visionox,rm69299-shift",
-	  .data = &visionox_rm69299_shift_desc },
+	{
+		.compatible = "visionox,rm69299-1080p-display",
+		.data = &visionox_rm69299_1080p_display_desc,
+	},
+	{
+		.compatible = "visionox,rm69299-shift",
+		.data = &visionox_rm69299_shift_desc,
+	},
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, visionox_rm69299_of_match);
drivers/gpu/drm/panel/panel-widechips-ws2401.c +3 -3
index 4430c71feb88..f8989c67648b 100644
@@ -419,14 +419,14 @@ static void ws2401_remove(struct spi_device *spi)
  * here and used for other configurations.
  */
 static const struct of_device_id ws2401_match[] = {
-	{ .compatible = "samsung,lms380kf01", },
-	{},
+	{ .compatible = "samsung,lms380kf01" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, ws2401_match);
 
 static const struct spi_device_id ws2401_ids[] = {
 	{ .name = "lms380kf01" },
-	{ },
+	{ }
 };
 MODULE_DEVICE_TABLE(spi, ws2401_ids);
 
drivers/gpu/drm/panfrost/panfrost_drv.c +20 -16
index eeda113037fe..b4e94b2f41a0 100644
@@ -977,23 +977,27 @@ static const struct panfrost_compatible mediatek_mt8370_data = {
 
 static const struct of_device_id dt_match[] = {
 	/* Set first to probe before the generic compatibles */
-	{ .compatible = "amlogic,meson-gxm-mali",
-	  .data = &amlogic_data, },
-	{ .compatible = "amlogic,meson-g12a-mali",
-	  .data = &amlogic_data, },
+	{
+		.compatible = "amlogic,meson-gxm-mali",
+		.data = &amlogic_data,
+	},
+	{
+		.compatible = "amlogic,meson-g12a-mali",
+		.data = &amlogic_data,
+	},
 	{ .compatible = "renesas,r9a08g046-mali", .data = &default_pm_rt_data },
 	{ .compatible = "renesas,r9a09g047-mali", .data = &default_pm_rt_data },
-	{ .compatible = "arm,mali-t604", .data = &default_data, },
-	{ .compatible = "arm,mali-t624", .data = &default_data, },
-	{ .compatible = "arm,mali-t628", .data = &default_data, },
-	{ .compatible = "arm,mali-t720", .data = &default_data, },
-	{ .compatible = "arm,mali-t760", .data = &default_data, },
-	{ .compatible = "arm,mali-t820", .data = &default_data, },
-	{ .compatible = "arm,mali-t830", .data = &default_data, },
-	{ .compatible = "arm,mali-t860", .data = &default_data, },
-	{ .compatible = "arm,mali-t880", .data = &default_data, },
-	{ .compatible = "arm,mali-bifrost", .data = &default_data, },
-	{ .compatible = "arm,mali-valhall-jm", .data = &default_data, },
+	{ .compatible = "arm,mali-t604", .data = &default_data },
+	{ .compatible = "arm,mali-t624", .data = &default_data },
+	{ .compatible = "arm,mali-t628", .data = &default_data },
+	{ .compatible = "arm,mali-t720", .data = &default_data },
+	{ .compatible = "arm,mali-t760", .data = &default_data },
+	{ .compatible = "arm,mali-t820", .data = &default_data },
+	{ .compatible = "arm,mali-t830", .data = &default_data },
+	{ .compatible = "arm,mali-t860", .data = &default_data },
+	{ .compatible = "arm,mali-t880", .data = &default_data },
+	{ .compatible = "arm,mali-bifrost", .data = &default_data },
+	{ .compatible = "arm,mali-valhall-jm", .data = &default_data },
 	{ .compatible = "mediatek,mt8183-mali", .data = &mediatek_mt8183_data },
 	{ .compatible = "mediatek,mt8183b-mali", .data = &mediatek_mt8183_b_data },
 	{ .compatible = "mediatek,mt8186-mali", .data = &mediatek_mt8186_data },
@@ -1001,7 +1005,7 @@ static const struct of_device_id dt_match[] = {
 	{ .compatible = "mediatek,mt8192-mali", .data = &mediatek_mt8192_data },
 	{ .compatible = "mediatek,mt8370-mali", .data = &mediatek_mt8370_data },
 	{ .compatible = "allwinner,sun50i-h616-mali", .data = &default_pm_rt_data },
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, dt_match);
 
drivers/gpu/drm/panthor/panthor_drv.c +2 -2
index dc8d0191aef4..9504c0ad34fd 100644
@@ -1878,10 +1878,10 @@ static const struct panthor_soc_data soc_data_mediatek_mt8196 = {
 };
 
 static const struct of_device_id dt_match[] = {
-	{ .compatible = "mediatek,mt8196-mali", .data = &soc_data_mediatek_mt8196, },
+	{ .compatible = "mediatek,mt8196-mali", .data = &soc_data_mediatek_mt8196 },
 	{ .compatible = "rockchip,rk3588-mali" },
 	{ .compatible = "arm,mali-valhall-csf" },
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, dt_match);
 
drivers/gpu/drm/pl111/pl111_versatile.c +2 -2
index 9a60f10231b1..52b45511dc72 100644
@@ -75,7 +75,7 @@ static const struct of_device_id versatile_clcd_of_match[] = {
 		.compatible = "arm,vexpress-muxfpga",
 		.data = (void *)VEXPRESS_CLCD_V2M,
 	},
-	{},
+	{ }
 };
 
 static const struct of_device_id impd1_clcd_of_match[] = {
@@ -83,7 +83,7 @@ static const struct of_device_id impd1_clcd_of_match[] = {
 		.compatible = "arm,im-pd1-syscon",
 		.data = (void *)INTEGRATOR_IMPD1,
 	},
-	{},
+	{ }
 };
 
 /*
drivers/gpu/drm/qxl/qxl_drv.c +3 -3
index 97df9d3d6957..8f34f2d8cdbe 100644
@@ -53,13 +53,13 @@ static const struct pci_device_id pciidlist[] = {
 	{
 		PCI_DEVICE(0x1b36, 0x0100),
 		.class = PCI_CLASS_DISPLAY_VGA << 8,
-		.class_mask = 0xffff00
+		.class_mask = 0xffff00,
 	}, {
 		PCI_DEVICE(0x1b36, 0x0100),
 		.class = PCI_CLASS_DISPLAY_OTHER << 8,
-		.class_mask = 0xffff00
+		.class_mask = 0xffff00,
 	},
-	{ },
+	{ }
 };
 MODULE_DEVICE_TABLE(pci, pciidlist);
 
drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c +3 -3
index 36762ec172d1..a66a42be812b 100644
@@ -188,9 +188,9 @@ static void rcar_cmm_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id rcar_cmm_of_table[] = {
-	{ .compatible = "renesas,rcar-gen3-cmm", },
-	{ .compatible = "renesas,rcar-gen2-cmm", },
-	{ },
+	{ .compatible = "renesas,rcar-gen3-cmm" },
+	{ .compatible = "renesas,rcar-gen2-cmm" },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, rcar_cmm_of_table);
 
drivers/gpu/drm/renesas/rcar-du/rcar_dsc.c +1 -1
index 1882ae34ce8f..dba39478efab 100644
@@ -133,7 +133,7 @@ static void rcar_dsc_remove(struct platform_device *pdev)
 
 static const struct of_device_id rcar_dsc_of_table[] = {
 	{ .compatible = "renesas,r8a779g0-dsc" },
-	{}
+	{ }
 };
 
 MODULE_DEVICE_TABLE(of, rcar_dsc_of_table);
drivers/gpu/drm/renesas/rcar-du/rcar_dw_hdmi.c +1 -1
index 8e7fac7a893b..41b4d60371d4 100644
@@ -101,7 +101,7 @@ static void rcar_dw_hdmi_remove(struct platform_device *pdev)
 
 static const struct of_device_id rcar_dw_hdmi_of_table[] = {
 	{ .compatible = "renesas,rcar-gen3-hdmi" },
-	{ /* Sentinel */ },
+	{ /* Sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, rcar_dw_hdmi_of_table);
 
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c +3 -3
index 5b257f5adf06..38c74309ca9a 100644
@@ -1685,9 +1685,9 @@ static const struct rzg2l_mipi_dsi_hw_info rzg3l_mipi_dsi_info = {
 };
 
 static const struct of_device_id rzg2l_mipi_dsi_of_table[] = {
-	{ .compatible = "renesas,r9a08g046-mipi-dsi", .data = &rzg3l_mipi_dsi_info, },
-	{ .compatible = "renesas,r9a09g057-mipi-dsi", .data = &rzv2h_mipi_dsi_info, },
-	{ .compatible = "renesas,rzg2l-mipi-dsi", .data = &rzg2l_mipi_dsi_info, },
+	{ .compatible = "renesas,r9a08g046-mipi-dsi", .data = &rzg3l_mipi_dsi_info },
+	{ .compatible = "renesas,r9a09g057-mipi-dsi", .data = &rzv2h_mipi_dsi_info },
+	{ .compatible = "renesas,rzg2l-mipi-dsi", .data = &rzg2l_mipi_dsi_info },
 	{ /* sentinel */ }
 };
 
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c +6 -6
index 635146746b42..a1c0de087bee 100644
@@ -574,12 +574,12 @@ static const struct rockchip_dp_chip_data rk3588_edp[] = {
 };
 
 static const struct of_device_id rockchip_dp_dt_ids[] = {
-	{.compatible = "rockchip,rk3288-dp", .data = &rk3288_dp },
-	{.compatible = "rockchip,rk3399-edp", .data = &rk3399_edp },
-	{.compatible = "rockchip,rk3568-edp", .data = &rk3568_edp },
-	{.compatible = "rockchip,rk3576-edp", .data = &rk3576_edp },
-	{.compatible = "rockchip,rk3588-edp", .data = &rk3588_edp },
-	{}
+	{ .compatible = "rockchip,rk3288-dp", .data = &rk3288_dp },
+	{ .compatible = "rockchip,rk3399-edp", .data = &rk3399_edp },
+	{ .compatible = "rockchip,rk3568-edp", .data = &rk3568_edp },
+	{ .compatible = "rockchip,rk3576-edp", .data = &rk3576_edp },
+	{ .compatible = "rockchip,rk3588-edp", .data = &rk3588_edp },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, rockchip_dp_dt_ids);
 
drivers/gpu/drm/rockchip/cdn-dp-core.c +5 -3
index 335177aacdef..8a2c22909b9c 100644
@@ -60,9 +60,11 @@ static struct cdn_dp_data rk3399_cdn_dp = {
 };
 
 static const struct of_device_id cdn_dp_dt_ids[] = {
-	{ .compatible = "rockchip,rk3399-cdn-dp",
-		.data = (void *)&rk3399_cdn_dp },
-	{}
+	{
+		.compatible = "rockchip,rk3399-cdn-dp",
+		.data = (void *)&rk3399_cdn_dp,
+	},
+	{ }
 };
 
 MODULE_DEVICE_TABLE(of, cdn_dp_dt_ids);
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +16 -16
index 30d6f83cd5da..8ad19ad94d3d 100644
@@ -1777,29 +1777,29 @@ static const struct rockchip_dw_dsi_chip_data rv1126_chip_data[] = {
 
 static const struct of_device_id dw_mipi_dsi_rockchip_dt_ids[] = {
 	{
-	 .compatible = "rockchip,px30-mipi-dsi",
-	 .data = &px30_chip_data,
+		.compatible = "rockchip,px30-mipi-dsi",
+		.data = &px30_chip_data,
 	}, {
-	 .compatible = "rockchip,rk3128-mipi-dsi",
-	 .data = &rk3128_chip_data,
+		.compatible = "rockchip,rk3128-mipi-dsi",
+		.data = &rk3128_chip_data,
 	}, {
-	 .compatible = "rockchip,rk3288-mipi-dsi",
-	 .data = &rk3288_chip_data,
+		.compatible = "rockchip,rk3288-mipi-dsi",
+		.data = &rk3288_chip_data,
 	}, {
-	 .compatible = "rockchip,rk3368-mipi-dsi",
-	 .data = &rk3368_chip_data,
+		.compatible = "rockchip,rk3368-mipi-dsi",
+		.data = &rk3368_chip_data,
 	}, {
-	 .compatible = "rockchip,rk3399-mipi-dsi",
-	 .data = &rk3399_chip_data,
+		.compatible = "rockchip,rk3399-mipi-dsi",
+		.data = &rk3399_chip_data,
 	}, {
-	 .compatible = "rockchip,rk3506-mipi-dsi",
-	 .data = &rk3506_chip_data,
+		.compatible = "rockchip,rk3506-mipi-dsi",
+		.data = &rk3506_chip_data,
 	}, {
-	 .compatible = "rockchip,rk3568-mipi-dsi",
-	 .data = &rk3568_chip_data,
+		.compatible = "rockchip,rk3568-mipi-dsi",
+		.data = &rk3568_chip_data,
 	}, {
-	 .compatible = "rockchip,rv1126-mipi-dsi",
-	 .data = &rv1126_chip_data,
+		.compatible = "rockchip,rv1126-mipi-dsi",
+		.data = &rv1126_chip_data,
 	},
 	{ /* sentinel */ }
 };
drivers/gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c +1 -1
index 3609ac34b911..51aaab7c4989 100644
@@ -497,7 +497,7 @@ static const struct of_device_id dw_mipi_dsi2_rockchip_dt_ids[] = {
 		.compatible = "rockchip,rk3588-mipi-dsi2",
 		.data = &rk3588_chip_data,
 	},
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, dw_mipi_dsi2_rockchip_dt_ids);
 
drivers/gpu/drm/rockchip/dw_dp-rockchip.c +1 -1
index b23efb153c9e..762129369cf5 100644
@@ -156,7 +156,7 @@ static const struct of_device_id dw_dp_of_match[] = {
 		.compatible = "rockchip,rk3576-dp",
 		.data = &rk3576_dp_plat_data,
 	},
-	{}
+	{ }
 };
 MODULE_DEVICE_TABLE(of, dw_dp_of_match);
 
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +19 -13
index b6e154c35e7c..932245da8fc0 100644
@@ -525,25 +525,31 @@ static const struct dw_hdmi_plat_data rk3568_hdmi_drv_data = {
 };
 
 static const struct of_device_id dw_hdmi_rockchip_dt_ids[] = {
-	{ .compatible = "rockchip,rk3228-dw-hdmi",
-	  .data = &rk3228_hdmi_drv_data
+	{
+		.compatible = "rockchip,rk3228-dw-hdmi",
+		.data = &rk3228_hdmi_drv_data,
 	},
-	{ .compatible = "rockchip,rk3288-dw-hdmi",
-	  .data = &rk3288_hdmi_drv_data
+	{
+		.compatible = "rockchip,rk3288-dw-hdmi",
+		.data = &rk3288_hdmi_drv_data,
 	},
-	{ .compatible = "rockchip,rk3328-dw-hdmi",
-	  .data = &rk3328_hdmi_drv_data
+	{
+		.compatible = "rockchip,rk3328-dw-hdmi",
+		.data = &rk3328_hdmi_drv_data,
 	},
-	{ .compatible = "rockchip,rk3368-dw-hdmi",
-	 .data = &rk3368_hdmi_drv_data
+	{
+		.compatible = "rockchip,rk3368-dw-hdmi",
+		.data = &rk3368_hdmi_drv_data,
 	},
-	{ .compatible = "rockchip,rk3399-dw-hdmi",
-	  .data = &rk3399_hdmi_drv_data
+	{
+		.compatible = "rockchip,rk3399-dw-hdmi",
+		.data = &rk3399_hdmi_drv_data,
 	},
-	{ .compatible = "rockchip,rk3568-dw-hdmi",
-	  .data = &rk3568_hdmi_drv_data
+	{
+		.compatible = "rockchip,rk3568-dw-hdmi",
+		.data = &rk3568_hdmi_drv_data,
 	},
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, dw_hdmi_rockchip_dt_ids);
 
drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c +3 -3
index 8ce991a5275c..51d5b72962a2 100644
@@ -596,12 +596,12 @@ static const struct rockchip_hdmi_qp_cfg rk3588_hdmi_cfg = {
 static const struct of_device_id dw_hdmi_qp_rockchip_dt_ids[] = {
 	{
 		.compatible = "rockchip,rk3576-dw-hdmi-qp",
-		.data = &rk3576_hdmi_cfg
+		.data = &rk3576_hdmi_cfg,
 	}, {
 		.compatible = "rockchip,rk3588-dw-hdmi-qp",
-		.data = &rk3588_hdmi_cfg
+		.data = &rk3588_hdmi_cfg,
 	},
-	{},
+	{ }
 };
 MODULE_DEVICE_TABLE(of, dw_hdmi_qp_rockchip_dt_ids);
 
drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c +7 -5
index 33ff195bd2e6..2f531bfb7e66 100644
@@ -169,13 +169,15 @@ static const struct inno_hdmi_plat_data rk3128_inno_hdmi_plat_data = {
 };
 
 static const struct of_device_id inno_hdmi_rockchip_dt_ids[] = {
-	{ .compatible = "rockchip,rk3036-inno-hdmi",
-	  .data = &rk3036_inno_hdmi_plat_data,
+	{
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/rockchip/rk3066_hdmi.c +1 -1
index d24f4832293e..f4fe6269dd20 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/rockchip/rockchip_drm_drv.c +2 -2
index 350fc18106ec..b161644155aa 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/rockchip/rockchip_lvds.c +3 -3
index 9cd437dc8c93..8c253790eb2f 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/rockchip/rockchip_vop2_reg.c +2 -2
index c44648e1bc0d..a4ea672c404c 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/rockchip/rockchip_vop_reg.c +61 -31

92 lines not on this page · raw message

drivers/gpu/drm/sitronix/st7571-i2c.c +1 -1
index e66eaa059439..066e2320bc17 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sitronix/st7571-spi.c +1 -1
index 2db85ad78721..ca06a979c644 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sitronix/st7586.c +2 -2
index 0760f771163a..415d7e2bb428 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sitronix/st7735r.c +2 -2
index f45bca9f3bc2..459f57ffaa40 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sprd/sprd_dpu.c +1 -1
index 8fa3c733cc4f..045dc4cc7892 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sprd/sprd_drm.c +2 -2
index c2fd5380a834..b0619fc54cab 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sprd/sprd_dsi.c +1 -1
index 48bf1ba035f7..1f5ee62744bf 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sti/sti_compositor.c +2 -3
index b6ca9361532c..21823263ea80 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sti/sti_drv.c +2 -2
index 0ca6c6b41f18..065b1ea63f80 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sti/sti_dvo.c +1 -1
index bb305c3739f1..a85f0d5fe214 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sti/sti_hda.c +2 -2
index 5175f4f5d1cf..8e358ea64c91 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sti/sti_hdmi.c +2 -3
index a34365bf1490..39bcc0597f0a 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sti/sti_hqvdp.c +1 -1
index 360d213f2094..461650f2caaa 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sti/sti_tvout.c +1 -1
index 2f5ef863e8ff..83923365e1bb 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sti/sti_vtg.c +1 -1
index 7d80cd8279c3..905f13c085bb 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/stm/drv.c +4 -4
index 0967b9b3451d..bb68c3ea65ae 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/stm/dw_mipi_dsi-stm.c +2 -2
index c9bd2c2e87ff..205b92adeabf 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/stm/lvds.c +1 -1
index e72a64f14f47..363bf6fe1e37 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sun4i/sun4i_frontend.c +4 -4
index 7dc0a09bb3c5..1aac371ce697 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c +3 -3
index 83bd273560a8..d15a69329cb0 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +6 -6
index 94c24fffd204..49d5c4ccc3d0 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c +1 -1
index e554cd577af9..61118461ce28 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sun4i/sun8i_tcon_top.c +3 -3
index 86e1e8fed03a..391dc26a8e7c 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sysfb/ofdrm.c +2 -2
index ce9a937b3cd7..025175d23af6 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/sysfb/simpledrm.c +2 -2
index 168c5cf8329a..6b1eee362a88 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tegra/dc.c +2 -3
index c9df14544ced..9c195e6f731d 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tegra/dpaux.c +1 -1
index a61d153312f9..f6576146bb89 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tegra/drm.c +42 -42

84 lines not on this page · raw message

drivers/gpu/drm/tegra/dsi.c +1 -1
index b5806a53e75a..e68d630ef7cb 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tegra/gr2d.c +1 -1
index a190add03b08..a5ad34b0d1cd 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tegra/hdmi.c +1 -1
index 3a94968bd983..a7e1749ec19b 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tegra/hub.c +4 -5
index 12429ca53ead..f5e069fa807f 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tegra/nvdec.c +1 -1
index 18a8f6e4ced0..139fb60cc35f 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tegra/nvjpg.c +1 -1
index e302a8d1f6e7..d96b346298cd 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tegra/sor.c +1 -1
index 061c5dbb738b..590cd48c5f77 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tegra/vic.c +1 -1
index 3c2b1ff55deb..ba9abe50b097 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tidss/tidss_drv.c +6 -6
index 7e7f2ba6ae82..a5b497a120fe 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tilcdc/tilcdc_drv.c +3 -3
index e82cb2686c5f..d93bff1758ae 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tiny/arcpgu.c +2 -2
index 32f6e98ba9c5..375a050ae316 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tiny/ili9225.c +2 -2
index 970abe1e9096..6ee8e01a54ae 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tiny/ili9486.c +1 -1
index a4b82bbf98f8..43f85e976955 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tiny/mi0283qt.c +2 -2
index 072326ef2e1e..9f574fe64021 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tiny/panel-mipi-dbi.c +2 -2
index ffff6acf7dea..fea28f7075f2 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tiny/pixpaper.c +1 -1
index 456887546034..e724c1815db2 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tiny/repaper.c +2 -2
index cebd48addc40..86c43f38c422 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tiny/sharp-memory.c +2 -2
index e3367e433a2e..1113d2089152 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/tve200/tve200_drv.c +1 -1
index 3786129e2231..346fdd1a817c 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/v3d/v3d_drv.c +1 -1
index b790be8a7fac..750027d4ca79 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vc4/vc4_crtc.c +1 -1
index f42cd5353230..f1a520e238dd 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vc4/vc4_dpi.c +1 -1
index e0d565de42b5..598d3fa62734 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vc4/vc4_drv.c +1 -1
index 6072b4e1ffed..c117c2a9b1bd 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vc4/vc4_dsi.c +1 -1
index 3e231f875725..317c76580ad3 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vc4/vc4_hdmi.c +1 -1
index f3ec65d86078..78e75e3b69d2 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vc4/vc4_hvs.c +1 -1
index 537aaa992129..c00bc70ee68a 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vc4/vc4_txp.c +1 -1
index 642953cba25f..c96b3e198c9c 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vc4/vc4_v3d.c +1 -1
index b60614a820eb..1edb1a0a0a64 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/vc4/vc4_vec.c +1 -1
index d46c164c4393..0decbb69f2a7 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/verisilicon/vs_dc.c +1 -1
index f912da60575c..fb5af86d466f 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xlnx/zynqmp_dpsub.c +2 -2
index 53ab1a2a5aaf..6733e3ef3213 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/host1x/dev.c +10 -10
index faaab789ccdb..4fb5c16c1501 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/host1x/tegra114-mipi.c +1 -1
index 49ed05d1a623..bf2b245268b0 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/ipu-v3/ipu-common.c +4 -4
index d18c68e2a555..7dbe2a8f39e8 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/ipu-v3/ipu-pre.c +2 -2
index 394081114faa..a562fa199a75 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/ipu-v3/ipu-prg.c +2 -2
index 9fd5c7092319..5a1905fa1cd4 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.56.0.rc1

Part of the diff is not shown here. View the raw message.

maintainer
#13 lore raw

Re: [PATCH v1 9/9] drm: Unify coding style for *_device_id arrays

Quoted 262 lines · Uwe Kleine-König

These arrays already mostly match the most used and generally recommended coding style. That is:

- list terminators in a single line;
- no comma after the list terminator;
- a comma after an initializer if (and only if) the closing } is not directly following;
- a space after an opening { and before a closing }, a single space in the list terminator (unless there is a comment);
- proper tab indentation for multi-line initializers;

Adapt the offenders accordingly.

---
 drivers/gpu/drm/adp/adp-mipi.c                |   4 +-
 drivers/gpu/drm/adp/adp_drv.c                 |   4 +-
 .../gpu/drm/arm/display/komeda/komeda_drv.c   |   8 +-
 drivers/gpu/drm/arm/hdlcd_drv.c               |   4 +-
 drivers/gpu/drm/arm/malidp_drv.c              |   8 +-
 drivers/gpu/drm/armada/armada_crtc.c          |   2 +-
 drivers/gpu/drm/aspeed/aspeed_gfx_drv.c       |   2 +-
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c  |   4 +-
 .../drm/bridge/analogix/analogix-anx6345.c    |   4 +-
 .../drm/bridge/analogix/analogix-anx78xx.c    |   2 +-
 drivers/gpu/drm/bridge/analogix/anx7625.c     |   4 +-
 drivers/gpu/drm/bridge/chipone-icn6211.c      |   2 +-
 drivers/gpu/drm/bridge/chrontel-ch7033.c      |   2 +-
 drivers/gpu/drm/bridge/display-connector.c    |   2 +-
 drivers/gpu/drm/bridge/fsl-ldb.c              |  23 +-
 drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c  |   7 +-
 .../drm/bridge/imx/imx8qxp-pixel-combiner.c   |   4 +-
 .../gpu/drm/bridge/imx/imx8qxp-pixel-link.c   |   4 +-
 drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c  |   2 +-
 drivers/gpu/drm/bridge/imx/imx93-mipi-dsi.c   |   2 +-
 drivers/gpu/drm/bridge/imx/imx93-pdfc.c       |   4 +-
 drivers/gpu/drm/bridge/ite-it6263.c           |   2 +-
 drivers/gpu/drm/bridge/lontium-lt8912b.c      |   4 +-
 drivers/gpu/drm/bridge/lontium-lt9211.c       |   2 +-
 drivers/gpu/drm/bridge/lvds-codec.c           |   2 +-
 .../bridge/megachips-stdpxxxx-ge-b850v3-fw.c  |   4 +-
 drivers/gpu/drm/bridge/microchip-lvds.c       |   6 +-
 drivers/gpu/drm/bridge/nwl-dsi.c              |   2 +-
 drivers/gpu/drm/bridge/nxp-ptn3460.c          |   2 +-
 drivers/gpu/drm/bridge/parade-ps8622.c        |   6 +-
 drivers/gpu/drm/bridge/sii902x.c              |   2 +-
 drivers/gpu/drm/bridge/sii9234.c              |   2 +-
 drivers/gpu/drm/bridge/sil-sii8620.c          |   2 +-
 drivers/gpu/drm/bridge/tc358767.c             |   2 +-
 drivers/gpu/drm/bridge/tc358768.c             |   4 +-
 drivers/gpu/drm/bridge/tc358775.c             |   4 +-
 drivers/gpu/drm/bridge/tda998x_drv.c          |   2 +-
 drivers/gpu/drm/bridge/th1520-dw-hdmi.c       |   2 +-
 drivers/gpu/drm/bridge/thc63lvd1024.c         |   4 +-
 drivers/gpu/drm/bridge/ti-sn65dsi83.c         |   2 +-
 drivers/gpu/drm/bridge/ti-sn65dsi86.c         |   4 +-
 drivers/gpu/drm/bridge/ti-tfp410.c            |   2 +-
 drivers/gpu/drm/bridge/ti-tpd12s015.c         |   4 +-
 drivers/gpu/drm/bridge/waveshare-dsi.c        |   4 +-
 drivers/gpu/drm/etnaviv/etnaviv_gpu.c         |   2 +-
 drivers/gpu/drm/exynos/exynos5433_drm_decon.c |   6 +-
 drivers/gpu/drm/exynos/exynos7_drm_decon.c    |   2 +-
 drivers/gpu/drm/exynos/exynos_dp.c            |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_fimc.c      |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_fimd.c      |  33 +-
 drivers/gpu/drm/exynos/exynos_drm_g2d.c       |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_gsc.c       |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_rotator.c   |   2 +-
 drivers/gpu/drm/exynos/exynos_drm_scaler.c    |   2 +-
 drivers/gpu/drm/exynos/exynos_hdmi.c          |   5 +-
 drivers/gpu/drm/exynos/exynos_mixer.c         |  15 +-
 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c     |   2 +-
 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c  |   2 +-
 .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c   |   7 +-
 .../drm/i915/display/intel_display_device.c   |   2 +-
 .../gpu/drm/i915/display/intel_lpe_audio.c    |   6 +-
 drivers/gpu/drm/i915/i915_pci.c               |   2 +-
 drivers/gpu/drm/imagination/pvr_drv.c         |   2 +-
 drivers/gpu/drm/imx/dc/dc-drv.c               |   2 +-
 drivers/gpu/drm/imx/dc/dc-ic.c                |   2 +-
 drivers/gpu/drm/imx/dc/dc-pe.c                |   2 +-
 drivers/gpu/drm/imx/dcss/dcss-drv.c           |   4 +-
 drivers/gpu/drm/imx/ipuv3/dw_hdmi-imx.c       |  11 +-
 drivers/gpu/drm/imx/ipuv3/imx-drm-core.c      |   4 +-
 drivers/gpu/drm/imx/ipuv3/imx-ldb.c           |   4 +-
 drivers/gpu/drm/imx/ipuv3/imx-tve.c           |   2 +-
 drivers/gpu/drm/imx/ipuv3/parallel-display.c  |   2 +-
 drivers/gpu/drm/ingenic/ingenic-drm-drv.c     |   2 +-
 drivers/gpu/drm/ingenic/ingenic-dw-hdmi.c     |   2 +-
 drivers/gpu/drm/ingenic/ingenic-ipu.c         |   2 +-
 drivers/gpu/drm/kmb/kmb_drv.c                 |   4 +-
 drivers/gpu/drm/lima/lima_drv.c               |   2 +-
 drivers/gpu/drm/logicvc/logicvc_drm.c         |   2 +-
 drivers/gpu/drm/mcde/mcde_drv.c               |   2 +-
 drivers/gpu/drm/mcde/mcde_dsi.c               |   2 +-
 drivers/gpu/drm/mediatek/mtk_cec.c            |   4 +-
 drivers/gpu/drm/mediatek/mtk_disp_ccorr.c     |  14 +-
 drivers/gpu/drm/mediatek/mtk_disp_color.c     |  20 +-
 drivers/gpu/drm/mediatek/mtk_disp_gamma.c     |  20 +-
 drivers/gpu/drm/mediatek/mtk_disp_merge.c     |   4 +-
 drivers/gpu/drm/mediatek/mtk_disp_ovl.c       |  50 ++-
 drivers/gpu/drm/mediatek/mtk_disp_rdma.c      |  26 +-
 drivers/gpu/drm/mediatek/mtk_dp.c             |   2 +-
 drivers/gpu/drm/mediatek/mtk_dpi.c            |   2 +-
 drivers/gpu/drm/mediatek/mtk_drm_drv.c        | 395 +++++++++++-------
 drivers/gpu/drm/mediatek/mtk_ethdr.c          |   4 +-
 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c       |   4 +-
 drivers/gpu/drm/mediatek/mtk_mdp_rdma.c       |   4 +-
 drivers/gpu/drm/meson/meson_drv.c             |  28 +-
 drivers/gpu/drm/meson/meson_dw_hdmi.c         |  24 +-
 drivers/gpu/drm/meson/meson_dw_mipi_dsi.c     |   2 +-
 drivers/gpu/drm/msm/adreno/adreno_device.c    |   2 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c       |  70 ++--
 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c      |   6 +-
 drivers/gpu/drm/msm/dp/dp_display.c           |   2 +-
 drivers/gpu/drm/msm/dsi/dsi.c                 |   2 +-
 drivers/gpu/drm/msm/hdmi/hdmi.c               |   2 +-
 drivers/gpu/drm/msm/hdmi/hdmi_phy.c           |  38 +-
 drivers/gpu/drm/msm/msm_drv.c                 |   2 +-
 drivers/gpu/drm/msm/msm_mdss.c                |   2 +-
 drivers/gpu/drm/mxsfb/mxsfb_drv.c             |   6 +-
 drivers/gpu/drm/nouveau/nouveau_drm.c         |   2 +-
 drivers/gpu/drm/omapdrm/dss/dispc.c           |   2 +-
 drivers/gpu/drm/omapdrm/dss/dsi.c             |   8 +-
 drivers/gpu/drm/omapdrm/dss/dss.c             |   2 +-
 drivers/gpu/drm/omapdrm/dss/hdmi4.c           |   4 +-
 drivers/gpu/drm/omapdrm/dss/hdmi5.c           |   6 +-
 drivers/gpu/drm/omapdrm/dss/venc.c            |   8 +-
 drivers/gpu/drm/omapdrm/omap_dmm_tiler.c      |   2 +-
 drivers/gpu/drm/panel/panel-arm-versatile.c   |   4 +-
 drivers/gpu/drm/panel/panel-boe-himax8279d.c  |   4 +-
 .../drm/panel/panel-boe-th101mb31ig002-28a.c  |   4 +-
 .../gpu/drm/panel/panel-boe-tv101wum-nl6.c    |  47 ++-
 drivers/gpu/drm/panel/panel-dsi-cm.c          |   2 +-
 drivers/gpu/drm/panel/panel-edp.c             |   5 +-
 .../gpu/drm/panel/panel-feixin-k101-im2ba02.c |   2 +-
 .../drm/panel/panel-feiyang-fy07024di26a30d.c |   2 +-
 .../gpu/drm/panel/panel-focaltech-ota7290b.c  |   4 +-
 drivers/gpu/drm/panel/panel-himax-hx83102.c   |  47 ++-
 drivers/gpu/drm/panel/panel-ilitek-ili9882t.c |  17 +-
 drivers/gpu/drm/panel/panel-innolux-p079zca.c |  11 +-
 .../gpu/drm/panel/panel-jadard-jd9365da-h3.c  |  30 +-
 drivers/gpu/drm/panel/panel-jdi-lpm102a188a.c |   2 +-
 .../gpu/drm/panel/panel-jdi-lt070me05000.c    |   2 +-
 drivers/gpu/drm/panel/panel-khadas-ts050.c    |   4 +-
 .../drm/panel/panel-kingdisplay-kd097d04.c    |   2 +-
 drivers/gpu/drm/panel/panel-lg-lb035q02.c     |   4 +-
 drivers/gpu/drm/panel/panel-lg-sw43408.c      |   4 +-
 .../gpu/drm/panel/panel-lincolntech-lcd197.c  |   2 +-
 drivers/gpu/drm/panel/panel-lvds.c            |   4 +-
 .../drm/panel/panel-magnachip-d53e6ea8966.c   |   2 +-
 drivers/gpu/drm/panel/panel-nec-nl8048hl11.c  |   4 +-
 drivers/gpu/drm/panel/panel-novatek-nt35950.c |   2 +-
 drivers/gpu/drm/panel/panel-novatek-nt36523.c |   2 +-
 .../gpu/drm/panel/panel-novatek-nt36672a.c    |   2 +-
 drivers/gpu/drm/panel/panel-novatek-nt36850.c |   2 +-
 drivers/gpu/drm/panel/panel-novatek-nt37801.c |   2 +-
 .../drm/panel/panel-osd-osd101t2587-53ts.c    |   5 +-
 .../drm/panel/panel-panasonic-vvx10f034n00.c  |   2 +-
 drivers/gpu/drm/panel/panel-raydium-rm67191.c |   2 +-
 drivers/gpu/drm/panel/panel-renesas-r63419.c  |   2 +-
 drivers/gpu/drm/panel/panel-ronbo-rb070d30.c  |   2 +-
 .../gpu/drm/panel/panel-samsung-atna33xc20.c  |   2 +-
 drivers/gpu/drm/panel/panel-samsung-db7430.c  |   6 +-
 drivers/gpu/drm/panel/panel-samsung-s6d27a1.c |   4 +-
 drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c |   6 +-
 .../panel/panel-samsung-s6e88a0-ams427ap24.c  |   2 +-
 .../panel/panel-samsung-s6e88a0-ams452ef01.c  |   2 +-
 drivers/gpu/drm/panel/panel-seiko-43wvf1g.c   |   5 +-
 .../gpu/drm/panel/panel-sharp-lq101r1sx01.c   |   2 +-
 .../gpu/drm/panel/panel-sharp-ls037v7dw01.c   |   4 +-
 .../gpu/drm/panel/panel-sharp-ls043t1le01.c   |   2 +-
 drivers/gpu/drm/panel/panel-simple.c          |  70 ++--
 .../gpu/drm/panel/panel-sitronix-st7789v.c    |  18 +-
 drivers/gpu/drm/panel/panel-sony-acx565akm.c  |   4 +-
 .../drm/panel/panel-startek-kd070fhfid015.c   |   2 +-
 drivers/gpu/drm/panel/panel-summit.c          |   2 +-
 drivers/gpu/drm/panel/panel-tdo-tl070wsh30.c  |   2 +-
 drivers/gpu/drm/panel/panel-tpo-td028ttec1.c  |   6 +-
 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c  |   4 +-
 drivers/gpu/drm/panel/panel-tpo-tpg110.c      |   6 +-
 drivers/gpu/drm/panel/panel-visionox-r66451.c |   2 +-
 .../gpu/drm/panel/panel-visionox-rm69299.c    |  12 +-
 .../gpu/drm/panel/panel-widechips-ws2401.c    |   6 +-
 drivers/gpu/drm/panfrost/panfrost_drv.c       |  36 +-
 drivers/gpu/drm/panthor/panthor_drv.c         |   4 +-
 drivers/gpu/drm/pl111/pl111_versatile.c       |   4 +-
 drivers/gpu/drm/qxl/qxl_drv.c                 |   6 +-
 drivers/gpu/drm/renesas/rcar-du/rcar_cmm.c    |   6 +-
 drivers/gpu/drm/renesas/rcar-du/rcar_dsc.c    |   2 +-
 .../gpu/drm/renesas/rcar-du/rcar_dw_hdmi.c    |   2 +-
 .../gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c    |   6 +-
 .../gpu/drm/rockchip/analogix_dp-rockchip.c   |  12 +-
 drivers/gpu/drm/rockchip/cdn-dp-core.c        |   8 +-
 .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   |  32 +-
 .../gpu/drm/rockchip/dw-mipi-dsi2-rockchip.c  |   2 +-
 drivers/gpu/drm/rockchip/dw_dp-rockchip.c     |   2 +-
 drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c   |  32 +-
 .../gpu/drm/rockchip/dw_hdmi_qp-rockchip.c    |   6 +-
 drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c |  12 +-
 drivers/gpu/drm/rockchip/rk3066_hdmi.c        |   2 +-
 drivers/gpu/drm/rockchip/rockchip_drm_drv.c   |   4 +-
 drivers/gpu/drm/rockchip/rockchip_lvds.c      |   6 +-
 drivers/gpu/drm/rockchip/rockchip_vop2_reg.c  |   4 +-
 drivers/gpu/drm/rockchip/rockchip_vop_reg.c   |  92 ++--
 drivers/gpu/drm/sitronix/st7571-i2c.c         |   2 +-
 drivers/gpu/drm/sitronix/st7571-spi.c         |   2 +-
 drivers/gpu/drm/sitronix/st7586.c             |   4 +-
 drivers/gpu/drm/sitronix/st7735r.c            |   4 +-
 drivers/gpu/drm/sprd/sprd_dpu.c               |   2 +-
 drivers/gpu/drm/sprd/sprd_drm.c               |   4 +-
 drivers/gpu/drm/sprd/sprd_dsi.c               |   2 +-
 drivers/gpu/drm/sti/sti_compositor.c          |   5 +-
 drivers/gpu/drm/sti/sti_drv.c                 |   4 +-
 drivers/gpu/drm/sti/sti_dvo.c                 |   2 +-
 drivers/gpu/drm/sti/sti_hda.c                 |   4 +-
 drivers/gpu/drm/sti/sti_hdmi.c                |   5 +-
 drivers/gpu/drm/sti/sti_hqvdp.c               |   2 +-
 drivers/gpu/drm/sti/sti_tvout.c               |   2 +-
 drivers/gpu/drm/sti/sti_vtg.c                 |   2 +-
 drivers/gpu/drm/stm/drv.c                     |   8 +-
 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c         |   4 +-
 drivers/gpu/drm/stm/lvds.c                    |   2 +-
 drivers/gpu/drm/sun4i/sun4i_frontend.c        |   8 +-
 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c        |   6 +-
 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c        |  12 +-
 drivers/gpu/drm/sun4i/sun8i_dw_hdmi.c         |   2 +-
 drivers/gpu/drm/sun4i/sun8i_tcon_top.c        |   6 +-
 drivers/gpu/drm/sysfb/ofdrm.c                 |   4 +-
 drivers/gpu/drm/sysfb/simpledrm.c             |   4 +-
 drivers/gpu/drm/tegra/dc.c                    |   5 +-
 drivers/gpu/drm/tegra/dpaux.c                 |   2 +-
 drivers/gpu/drm/tegra/drm.c                   |  84 ++--
 drivers/gpu/drm/tegra/dsi.c                   |   2 +-
 drivers/gpu/drm/tegra/gr2d.c                  |   2 +-
 drivers/gpu/drm/tegra/hdmi.c                  |   2 +-
 drivers/gpu/drm/tegra/hub.c                   |   9 +-
 drivers/gpu/drm/tegra/nvdec.c                 |   2 +-
 drivers/gpu/drm/tegra/nvjpg.c                 |   2 +-
 drivers/gpu/drm/tegra/sor.c                   |   2 +-
 drivers/gpu/drm/tegra/vic.c                   |   2 +-
 drivers/gpu/drm/tidss/tidss_drv.c             |  12 +-
 drivers/gpu/drm/tilcdc/tilcdc_drv.c           |   6 +-
 drivers/gpu/drm/tiny/arcpgu.c                 |   4 +-
 drivers/gpu/drm/tiny/ili9225.c                |   4 +-
 drivers/gpu/drm/tiny/ili9486.c                |   2 +-
 drivers/gpu/drm/tiny/mi0283qt.c               |   4 +-
 drivers/gpu/drm/tiny/panel-mipi-dbi.c         |   4 +-
 drivers/gpu/drm/tiny/pixpaper.c               |   2 +-
 drivers/gpu/drm/tiny/repaper.c                |   4 +-
 drivers/gpu/drm/tiny/sharp-memory.c           |   4 +-
 drivers/gpu/drm/tve200/tve200_drv.c           |   2 +-
 drivers/gpu/drm/v3d/v3d_drv.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_crtc.c                |   2 +-
 drivers/gpu/drm/vc4/vc4_dpi.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_drv.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_dsi.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_hdmi.c                |   2 +-
 drivers/gpu/drm/vc4/vc4_hvs.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_txp.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_v3d.c                 |   2 +-
 drivers/gpu/drm/vc4/vc4_vec.c                 |   2 +-
Quoted 8 lines
 drivers/gpu/drm/verisilicon/vs_dc.c           |   2 +-
 drivers/gpu/drm/xlnx/zynqmp_dpsub.c           |   4 +-
 drivers/gpu/host1x/dev.c                      |  20 +-
 drivers/gpu/host1x/tegra114-mipi.c            |   2 +-
 drivers/gpu/ipu-v3/ipu-common.c               |   8 +-
 drivers/gpu/ipu-v3/ipu-pre.c                  |   4 +-
 drivers/gpu/ipu-v3/ipu-prg.c                  |   4 +-
 254 files changed, 1155 insertions(+), 940 deletions(-)

How do you expect a patch of this size be merged?

Quoted 36 lines
drivers/gpu/drm/i915/display/intel_display_device.c +1 -1
index 055396f85e4a..6b51a5102201 100644
@@ -1442,7 +1442,7 @@ static bool has_no_display(struct pci_dev *pdev)
 {
 	static const struct pci_device_id ids[] = {
 		INTEL_IVB_Q_IDS(INTEL_VGA_DEVICE, 0),
-		{}
+		{ }
 	};
 
 	return pci_match_id(ids, pdev);
drivers/gpu/drm/i915/display/intel_lpe_audio.c +3 -3
index ff2cf479d8e1..3d92cb307251 100644
@@ -185,10 +185,10 @@ static bool lpe_audio_detect(struct intel_display *display)
 	if (display->platform.valleyview || display->platform.cherryview) {
 		static const struct pci_device_id atom_hdaudio_ids[] = {
 			/* Baytrail */
-			{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0f04)},
+			{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x0f04) },
 			/* Braswell */
-			{PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x2284)},
-			{}
+			{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x2284) },
+			{ }
 		};
 
 		if (!pci_dev_present(atom_hdaudio_ids)) {
drivers/gpu/drm/i915/i915_pci.c +0 -0
index 84a7dc6ab5db..faceb3de4fa3 100644

drivers/gpu/drm/i915/i915_pci.c static const struct pci_device_id pciidlist[] = { · line 873

Quoted 5 lines
drivers/gpu/drm/i915/i915_pci.c +1 -1
@@ -870,7 +870,7 @@ static const struct pci_device_id pciidlist[] = {
 	INTEL_ATS_M_IDS(INTEL_VGA_DEVICE, &ats_m_info),
 	INTEL_ARL_IDS(INTEL_VGA_DEVICE, &mtl_info),
 	INTEL_MTL_IDS(INTEL_VGA_DEVICE, &mtl_info),
-	{}
+	{ }

Personally, I would *always* use {} instead of { }, and would rather not change.

Across the tree, {} is slightly more common than { }. IMO changing them is pointless churn.

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel
#14 lore raw

Re: [PATCH v1 9/9] drm: Unify coding style for *_device_id arrays

Hello Jani,

Quoted 7 lines · Jani Nikula
Quoted 5 lines

[...]

 drivers/gpu/ipu-v3/ipu-common.c               |   8 +-
 drivers/gpu/ipu-v3/ipu-pre.c                  |   4 +-
 drivers/gpu/ipu-v3/ipu-prg.c                  |   4 +-
 254 files changed, 1155 insertions(+), 940 deletions(-)

How do you expect a patch of this size be merged?

Using b4 am :-) Honestly, in the cover letter I wrote about an immutable branch and offered to rebase to 7.4-rc1. When trying to apply this series on top ov 7.4-rc1 there are only 6 conflicts (1x modify/delete and 5x content); these are all not so hard to resolve (and even dropping the respective hunks (i.e. resolving using git checkout HEAD) is fine for me.)

Quoted 14 lines

drivers/gpu/drm/i915/i915_pci.c static const struct pci_device_id pciidlist[] = { · line 873

Quoted 10 lines
drivers/gpu/drm/i915/i915_pci.c +1 -1
index 84a7dc6ab5db..faceb3de4fa3 100644
@@ -870,7 +870,7 @@ static const struct pci_device_id pciidlist[] = {
 	INTEL_ATS_M_IDS(INTEL_VGA_DEVICE, &ats_m_info),
 	INTEL_ARL_IDS(INTEL_VGA_DEVICE, &mtl_info),
 	INTEL_MTL_IDS(INTEL_VGA_DEVICE, &mtl_info),
-	{}
+	{ }

Personally, I would *always* use {} instead of { }, and would rather not change.

Quoted 2 lines

Across the tree, {} is slightly more common than { }. IMO changing them is pointless churn.

It depends on how you count. My statistic looks as follows (on top of next-20261117):

	$ git grep -l device_id | xargs -n 1 perl -g -n -e 'print "$1\n" if m/device_id\s*[a-zA-Z_0-9]*\[\]\s*=\s*{(?:\s*{[^}]*},\s*({\s*}))/' | sort | uniq -c
	      2 	}
	      2 {
	      6 {  }
	   2598 { }
	   1262 {}

So over all *_device_id { } is more common by a factor of > 2. This series fixes one { } and reduces the number of {} by 37. For only pci_device_id it's:

	$ git grep -l pci_device_id | xargs -n 1 perl -g -n -e 'print "$1\n" if m/pci_device_id\s*[a-zA-Z_0-9]*\[\]\s*=\s*{(?:\s*{[^}]*},\s*({\s*}))/' | sort | uniq -c
	    159 { }
	     32 {}

Without the context of an array initializer there are many empty code blocks (function bodys or do {} while (0)), empty dt nodes, and {} in Rust code, which IMHO have to be considered off-topic for this statistic.

Best regards
Uwe

maintainer
#15 lore raw

Re: [PATCH v1 9/9] drm: Unify coding style for *_device_id arrays

Quoted 49 lines · Uwe Kleine-König

Hello Jani,

Quoted 7 lines · Jani Nikula
Quoted 5 lines

[...]

 drivers/gpu/ipu-v3/ipu-common.c               |   8 +-
 drivers/gpu/ipu-v3/ipu-pre.c                  |   4 +-
 drivers/gpu/ipu-v3/ipu-prg.c                  |   4 +-
 254 files changed, 1155 insertions(+), 940 deletions(-)

How do you expect a patch of this size be merged?

Using b4 am :-) Honestly, in the cover letter I wrote about an immutable branch and offered to rebase to 7.4-rc1. When trying to apply this series on top ov 7.4-rc1 there are only 6 conflicts (1x modify/delete and 5x content); these are all not so hard to resolve (and even dropping the respective hunks (i.e. resolving using git checkout HEAD) is fine for me.)

Quoted 14 lines

drivers/gpu/drm/i915/i915_pci.c static const struct pci_device_id pciidlist[] = { · line 873

Quoted 10 lines
drivers/gpu/drm/i915/i915_pci.c +1 -1
index 84a7dc6ab5db..faceb3de4fa3 100644
@@ -870,7 +870,7 @@ static const struct pci_device_id pciidlist[] = {
 	INTEL_ATS_M_IDS(INTEL_VGA_DEVICE, &ats_m_info),
 	INTEL_ARL_IDS(INTEL_VGA_DEVICE, &mtl_info),
 	INTEL_MTL_IDS(INTEL_VGA_DEVICE, &mtl_info),
-	{}
+	{ }

Personally, I would *always* use {} instead of { }, and would rather not change.

Quoted 2 lines

Across the tree, {} is slightly more common than { }. IMO changing them is pointless churn.

It depends on how you count. My statistic looks as follows (on top of next-20261117):

	$ git grep -l device_id | xargs -n 1 perl -g -n -e 'print "$1\n" if m/device_id\s*[a-zA-Z_0-9]*\[\]\s*=\s*{(?:\s*{[^}]*},\s*({\s*}))/' | sort | uniq -c
	      2 	}
	      2 {
	      6 {  }
	   2598 { }
	   1262 {}

So over all *_device_id { } is more common by a factor of > 2. This series fixes one { } and reduces the number of {} by 37. For only pci_device_id it's:

Quoted 8 lines
	$ git grep -l pci_device_id | xargs -n 1 perl -g -n -e 'print "$1\n" if m/pci_device_id\s*[a-zA-Z_0-9]*\[\]\s*=\s*{(?:\s*{[^}]*},\s*({\s*}))/' | sort | uniq -c
	    159 { }
	     32 {}

Without the context of an array initializer there are many empty code blocks (function bodys or do {} while (0)), empty dt nodes, and {} in Rust code, which IMHO have to be considered off-topic for this statistic.

I realize my phrasing was careless.

My point was not so much about one being more common than the other, but rather that there are *thousands* of instances of both, specifically as C compound literals with empty initializer list. I think it's pointless to convert one to other, regardless of whether you're adding or removing a space.

I mentioned my preference, because if I were to go on a style fixing spree, I'd go the other direction. But I think that too would be pointless.

I suggest to just accept either.

BR,
Jani.

Signature · 1 line
Jani Nikula, Intel