Skip to content

Commit 50638ae

Browse files
pinchartltomba
authored andcommitted
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 <[email protected]> Reviewed-by: Sebastian Reichel <[email protected]>
1 parent d3541ca commit 50638ae

File tree

15 files changed

+257
-196
lines changed

15 files changed

+257
-196
lines changed

drivers/gpu/drm/omapdrm/dss/base.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ void omapdss_set_dss(struct dss_device *dss)
4444
}
4545
EXPORT_SYMBOL(omapdss_set_dss);
4646

47+
struct dispc_device *dispc_get_dispc(struct dss_device *dss)
48+
{
49+
return dss->dispc;
50+
}
51+
EXPORT_SYMBOL(dispc_get_dispc);
52+
4753
const struct dispc_ops *dispc_get_ops(struct dss_device *dss)
4854
{
4955
return dss->dispc_ops;

0 commit comments

Comments
 (0)