linux/drivers/gpu/drm/tilcdc
Kory Maincent (TI.com) 968fefee98 drm/tilcdc: Remove the use of drm_device private_data
The DRM core documentation recommends against using dev_private:
"Instead of using this pointer it is recommended that drivers use
embed the struct &drm_device in their larger per-device structure."

This patch refactors the tilcdc driver to follow this recommendation
by embedding struct drm_device within struct tilcdc_drm_private and
replacing all dev->dev_private accesses with the ddev_to_tilcdc_priv()
helper macro that uses container_of().

This change aligns the driver with modern DRM best practices.

Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Kory Maincent (TI.com) <kory.maincent@bootlin.com>
Link: https://patch.msgid.link/20260123-feature_tilcdc-v5-17-5a44d2aa3f6f@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
History 2026-02-11 09:16:15 +01:00
..
Kconfig drm/tilcdc: Convert legacy panel binding via DT overlay at boot time 2026-02-11 09:16:15 +01:00
Makefile drm/tilcdc: Rename tilcdc_external to tilcdc_encoder 2026-02-11 09:16:15 +01:00
tilcdc_crtc.c drm/tilcdc: Remove the use of drm_device private_data 2026-02-11 09:16:15 +01:00
tilcdc_drv.c drm/tilcdc: Remove the use of drm_device private_data 2026-02-11 09:16:15 +01:00
tilcdc_drv.h drm/tilcdc: Remove the use of drm_device private_data 2026-02-11 09:16:15 +01:00
tilcdc_encoder.c drm/tilcdc: Remove the use of drm_device private_data 2026-02-11 09:16:15 +01:00
tilcdc_encoder.h drm/tilcdc: Rename tilcdc_external to tilcdc_encoder 2026-02-11 09:16:15 +01:00
tilcdc_panel_legacy.c drm/tilcdc: Convert legacy panel binding via DT overlay at boot time 2026-02-11 09:16:15 +01:00
tilcdc_panel_legacy.dtso drm/tilcdc: Convert legacy panel binding via DT overlay at boot time 2026-02-11 09:16:15 +01:00
tilcdc_plane.c drm/tilcdc: Remove the use of drm_device private_data 2026-02-11 09:16:15 +01:00
tilcdc_regs.h drm/tilcdc: Remove the use of drm_device private_data 2026-02-11 09:16:15 +01:00