Skip to content

Commit

Permalink
drm: omapdrm: dispc: Pass DISPC pointer to dispc_ops operations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Laurent Pinchart authored and Tomi Valkeinen committed Mar 1, 2018
1 parent d3541ca commit 50638ae
Show file tree
Hide file tree
Showing 15 changed files with 257 additions and 196 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/omapdrm/dss/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ void omapdss_set_dss(struct dss_device *dss)
}
EXPORT_SYMBOL(omapdss_set_dss);

struct dispc_device *dispc_get_dispc(struct dss_device *dss)
{
return dss->dispc;
}
EXPORT_SYMBOL(dispc_get_dispc);

const struct dispc_ops *dispc_get_ops(struct dss_device *dss)
{
return dss->dispc_ops;
Expand Down
Loading

0 comments on commit 50638ae

Please sign in to comment.