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/vc4/vc4_dsi.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/vc4/vc4_dsi.c b/drivers/gpu/drm/vc4/vc4_dsi.c index 458e5d9879645f18bcbcaeeb71b5f1038f9581da..b623e013747522b524ee00aede897ecafbc88e2a 100644 --- a/drivers/gpu/drm/vc4/vc4_dsi.c +++ b/drivers/gpu/drm/vc4/vc4_dsi.c @@ -1342,16 +1342,16 @@ static ssize_t vc4_dsi_host_transfer(struct mipi_dsi_host *host, static const struct component_ops vc4_dsi_ops; static int vc4_dsi_host_attach(struct mipi_dsi_host *host, - struct mipi_dsi_device *device) + const struct mipi_dsi_bus_fmt *bus_fmt) { struct vc4_dsi *dsi = host_to_dsi(host); int ret; - dsi->lanes = device->lanes; - dsi->channel = device->channel; - dsi->mode_flags = device->mode_flags; + dsi->lanes = bus_fmt->lanes; + dsi->channel = bus_fmt->channel; + dsi->mode_flags = bus_fmt->mode_flags; - switch (device->format) { + switch (bus_fmt->format) { case MIPI_DSI_FMT_RGB888: dsi->format = DSI_PFORMAT_RGB888; dsi->divider = 24 / dsi->lanes; @@ -1402,7 +1402,7 @@ static int vc4_dsi_host_detach(struct mipi_dsi_host *host, } static const struct mipi_dsi_host_ops vc4_dsi_host_ops = { - .attach = vc4_dsi_host_attach, + .attach_new = vc4_dsi_host_attach, .detach = vc4_dsi_host_detach, .transfer = vc4_dsi_host_transfer, }; -- 2.49.0
