[15/32] drm: adp: mipi: convert to the .attach_new op

Message ID 20250625-drm-dsi-host-no-device-ptr-v1-15-e36bc258a7c5@bootlin.com (mailing list archive)
State New
Headers
Series drm/mipi-dsi: avoid DSI host drivers to have pointers to DSI devices |

Commit Message

Luca Ceresoli June 25, 2025, 4:45 p.m. UTC
This op does not pass any pointer to the DSI device, so the DSI host driver
cannot store it.

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
---
 drivers/gpu/drm/adp/adp-mipi.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/drivers/gpu/drm/adp/adp-mipi.c b/drivers/gpu/drm/adp/adp-mipi.c
index cba7d32150a98d78d07a25b1822dec6bf2f08f65..088b13ed0c89ce5e1fd3f4e57fa842fb2f31f257 100644
--- a/drivers/gpu/drm/adp/adp-mipi.c
+++ b/drivers/gpu/drm/adp/adp-mipi.c
@@ -171,7 +171,7 @@  static const struct component_ops adp_dsi_component_ops = {
 };
 
 static int adp_dsi_host_attach(struct mipi_dsi_host *host,
-			       struct mipi_dsi_device *dev)
+			       const struct mipi_dsi_bus_fmt *bus_fmt)
 {
 	struct adp_mipi_drv_private *adp = mipi_to_adp(host);
 	struct drm_bridge *next;
@@ -207,7 +207,7 @@  static int adp_dsi_host_detach(struct mipi_dsi_host *host,
 
 static const struct mipi_dsi_host_ops adp_dsi_host_ops = {
 	.transfer = adp_dsi_host_transfer,
-	.attach = adp_dsi_host_attach,
+	.attach_new = adp_dsi_host_attach,
 	.detach = adp_dsi_host_detach,
 };