drm: Improvements around device-id arrays
Subsystems (115)
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
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
@@ -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
PATCH 9/9 drm: Unify coding style for *_device_id arrays
In reply to Uwe Kleine-KönigThese 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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, + {
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/rockchip_drm_drv.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/rockchip_lvds.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/gpu/drm/rockchip/rockchip_vop2_reg.c +2 -2
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/tegra/drm.c +42 -42
84 lines not on this page · 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.
PATCH 5/9 drm: Use designated initializers for i2c_device_id arrays
In reply to Uwe Kleine-KönigNamed 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
@@ -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
@@ -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
PATCH 7/9 drm: Use an empty initializer as pci_device_id array terminator
In reply to Uwe Kleine-KönigRely 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
@@ -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
@@ -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
PATCH 2/9 drm/sitronix/st7571-i2c: Drop unused assignment of i2c_device_id driver data
In reply to Uwe Kleine-KönigThe 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
@@ -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
PATCH 4/9 drm: Use designated initializers for spi_device_id arrays
In reply to Uwe Kleine-KönigNamed 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 3/9 drm: Drop unused assignment of spi_device_id driver_data
In reply to Uwe Kleine-KönigThe 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 8/9 drm/pl111: Use an empty initializer as amba_id array terminator
In reply to Uwe Kleine-KönigRely 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
@@ -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
PATCH 6/9 drm: Use designated initializers for of_device_id arrays
In reply to Uwe Kleine-KönigNamed 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
@@ -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
@@ -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
@@ -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
@@ -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
Re: [PATCH v1 8/9] drm/pl111: Use an empty initializer as amba_id array terminator
In reply to Uwe Kleine-KönigQuoted 4 lines · Uwe Kleine-König
Rely on the default initialisation provided by the compiler instead of explicitly assigning zeros.
Signed-off-by Uwe Kleine-König <[email protected]>
Tell me if I should just apply the patch, I'm just assuming you have DRM commit rights.
Yours,
Linus Walleij
Jani Nikula
maintainerRe: [PATCH v1 9/9] drm: Unify coding style for *_device_id arrays
In reply to Uwe Kleine-KönigQuoted 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.
Signed-off-by Uwe Kleine-König <[email protected]>--- 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@@ -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@@ -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
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
Re: [PATCH v1 6/9] drm: Use designated initializers for of_device_id arrays
In reply to Uwe Kleine-KönigQuoted 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_idreplacing .data by an anonymous union.Signed-off-by Uwe Kleine-König <[email protected]>
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@@ -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@@ -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@@ -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@@ -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 }, {} };
Re: [PATCH v1 9/9] drm: Unify coding style for *_device_id arrays
In reply to Jani NikulaHello 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@@ -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
Re: [PATCH v1 8/9] drm/pl111: Use an empty initializer as amba_id array terminator
In reply to Linus WalleijHello 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
Signed-off-by Uwe Kleine-König <[email protected]>Reviewed-by Linus Walleij <[email protected]>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
Jani Nikula
maintainerRe: [PATCH v1 9/9] drm: Unify coding style for *_device_id arrays
In reply to Uwe Kleine-KönigQuoted 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@@ -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 onlypci_device_idit'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