aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/dss/base.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-02-13 07:00:41 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-03-01 02:18:18 -0500
commitd3541ca81dbddeefa0c42df448211a9dbaef0843 (patch)
treef6a9425fa31c30f7f4597fd6ab48a8a250bf7502 /drivers/gpu/drm/omapdrm/dss/base.c
parent72877cf38b4b78fbb3a852f2288d7f2a7af0db22 (diff)
drm: omapdrm: dss: Store dispc ops in dss_device structure
Remove the global dispc ops variable by storing it in the dss_device structure. 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/base.c')
-rw-r--r--drivers/gpu/drm/omapdrm/dss/base.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/base.c b/drivers/gpu/drm/omapdrm/dss/base.c
index 6346bc967a77..c248c3c31904 100644
--- a/drivers/gpu/drm/omapdrm/dss/base.c
+++ b/drivers/gpu/drm/omapdrm/dss/base.c
@@ -18,10 +18,11 @@
18#include <linux/of.h> 18#include <linux/of.h>
19#include <linux/of_graph.h> 19#include <linux/of_graph.h>
20#include <linux/list.h> 20#include <linux/list.h>
21
22#include "dss.h"
21#include "omapdss.h" 23#include "omapdss.h"
22 24
23static struct dss_device *dss_device; 25static struct dss_device *dss_device;
24static const struct dispc_ops *ops;
25 26
26static struct list_head omapdss_comp_list; 27static struct list_head omapdss_comp_list;
27 28
@@ -43,15 +44,9 @@ void omapdss_set_dss(struct dss_device *dss)
43} 44}
44EXPORT_SYMBOL(omapdss_set_dss); 45EXPORT_SYMBOL(omapdss_set_dss);
45 46
46void dispc_set_ops(const struct dispc_ops *o) 47const struct dispc_ops *dispc_get_ops(struct dss_device *dss)
47{
48 ops = o;
49}
50EXPORT_SYMBOL(dispc_set_ops);
51
52const struct dispc_ops *dispc_get_ops(void)
53{ 48{
54 return ops; 49 return dss->dispc_ops;
55} 50}
56EXPORT_SYMBOL(dispc_get_ops); 51EXPORT_SYMBOL(dispc_get_ops);
57 52