This op does not pass any pointer to the DSI device, so the DSI host driver
cannot store it.

Signed-off-by: Luca Ceresoli <[email protected]>
---
 drivers/gpu/drm/bridge/nwl-dsi.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c b/drivers/gpu/drm/bridge/nwl-dsi.c
index 
94356d02a7009a4d333f2df6c628d57c4bf66fdb..76bb3828a615d75161aa7910a18ed909ee9cad2d
 100644
--- a/drivers/gpu/drm/bridge/nwl-dsi.c
+++ b/drivers/gpu/drm/bridge/nwl-dsi.c
@@ -344,16 +344,16 @@ static int nwl_dsi_init_interrupts(struct nwl_dsi *dsi)
 }
 
 static int nwl_dsi_host_attach(struct mipi_dsi_host *dsi_host,
-                              struct mipi_dsi_device *device)
+                              const struct mipi_dsi_bus_fmt *bus_fmt)
 {
        struct nwl_dsi *dsi = container_of(dsi_host, struct nwl_dsi, dsi_host);
 
-       if (device->lanes > 4)
+       if (bus_fmt->lanes > 4)
                return -EINVAL;
 
-       dsi->lanes = device->lanes;
-       dsi->format = device->format;
-       dsi->dsi_mode_flags = device->mode_flags;
+       dsi->lanes = bus_fmt->lanes;
+       dsi->format = bus_fmt->format;
+       dsi->dsi_mode_flags = bus_fmt->mode_flags;
 
        return 0;
 }
@@ -620,7 +620,7 @@ static ssize_t nwl_dsi_host_transfer(struct mipi_dsi_host 
*dsi_host,
 }
 
 static const struct mipi_dsi_host_ops nwl_dsi_host_ops = {
-       .attach = nwl_dsi_host_attach,
+       .attach_new = nwl_dsi_host_attach,
        .transfer = nwl_dsi_host_transfer,
 };
 

-- 
2.49.0

Reply via email to