aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/dss/dsi.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-02-13 07:00:42 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-03-01 02:18:18 -0500
commit50638ae569dc097a95218eb70140e68aa213b07c (patch)
treeee05794dd9530d70183c7e3f5d649e2a95940e12 /drivers/gpu/drm/omapdrm/dss/dsi.c
parentd3541ca81dbddeefa0c42df448211a9dbaef0843 (diff)
drm: omapdrm: dispc: Pass DISPC pointer to dispc_ops operations
This removes the need to access the global DISPC private data in those functions (both for the current accesses and the future ones that will be introduced when allocating the DISPC private data dynamically). In order to allow the omapdrm side to call the dispc_ops with a DISPC pointer, we also introduce a new function dss_get_dispc() to retrieve the DISPC corresponding to the DSS. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/dsi.c')
-rw-r--r--drivers/gpu/drm/omapdrm/dss/dsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/dsi.c b/drivers/gpu/drm/omapdrm/dss/dsi.c
index 66c4d973e7eb..c07326a46c01 100644
--- a/drivers/gpu/drm/omapdrm/dss/dsi.c
+++ b/drivers/gpu/drm/omapdrm/dss/dsi.c
@@ -5523,7 +5523,7 @@ static int dsi_runtime_suspend(struct device *dev)
5523 /* wait for current handler to finish before turning the DSI off */ 5523 /* wait for current handler to finish before turning the DSI off */
5524 synchronize_irq(dsi->irq); 5524 synchronize_irq(dsi->irq);
5525 5525
5526 dispc_runtime_put(); 5526 dispc_runtime_put(dsi->dss->dispc);
5527 5527
5528 return 0; 5528 return 0;
5529} 5529}
@@ -5533,7 +5533,7 @@ static int dsi_runtime_resume(struct device *dev)
5533 struct dsi_data *dsi = dev_get_drvdata(dev); 5533 struct dsi_data *dsi = dev_get_drvdata(dev);
5534 int r; 5534 int r;
5535 5535
5536 r = dispc_runtime_get(); 5536 r = dispc_runtime_get(dsi->dss->dispc);
5537 if (r) 5537 if (r)
5538 return r; 5538 return r;
5539 5539