diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-10-24 06:52:40 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-12-07 10:05:59 -0500 |
commit | a97a96347598201ae39b5aee67638dae2cebe454 (patch) | |
tree | 1f5787049a9a7b474ce9f937ced021cde975c0ef /drivers/video/omap2 | |
parent | d13f5b7d98eebe59112ca3d92763000c306872e4 (diff) |
OMAPDSS: export dss_mgr_ops functions
Export dss_mgr_ops related functions.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r-- | drivers/video/omap2/dss/dss.h | 30 | ||||
-rw-r--r-- | drivers/video/omap2/dss/output.c | 9 |
2 files changed, 9 insertions, 30 deletions
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h index 8c89cdda96dd..1d8483cbe395 100644 --- a/drivers/video/omap2/dss/dss.h +++ b/drivers/video/omap2/dss/dss.h | |||
@@ -179,19 +179,6 @@ void dss_put_device(struct omap_dss_device *dssdev); | |||
179 | void dss_copy_device_pdata(struct omap_dss_device *dst, | 179 | void dss_copy_device_pdata(struct omap_dss_device *dst, |
180 | const struct omap_dss_device *src); | 180 | const struct omap_dss_device *src); |
181 | 181 | ||
182 | /* apply */ | ||
183 | void dss_mgr_start_update(struct omap_overlay_manager *mgr); | ||
184 | int dss_mgr_enable(struct omap_overlay_manager *mgr); | ||
185 | void dss_mgr_disable(struct omap_overlay_manager *mgr); | ||
186 | void dss_mgr_set_timings(struct omap_overlay_manager *mgr, | ||
187 | const struct omap_video_timings *timings); | ||
188 | void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr, | ||
189 | const struct dss_lcd_mgr_config *config); | ||
190 | int dss_mgr_register_framedone_handler(struct omap_overlay_manager *mgr, | ||
191 | void (*handler)(void *), void *data); | ||
192 | void dss_mgr_unregister_framedone_handler(struct omap_overlay_manager *mgr, | ||
193 | void (*handler)(void *), void *data); | ||
194 | |||
195 | /* output */ | 182 | /* output */ |
196 | void dss_register_output(struct omap_dss_output *out); | 183 | void dss_register_output(struct omap_dss_output *out); |
197 | void dss_unregister_output(struct omap_dss_output *out); | 184 | void dss_unregister_output(struct omap_dss_output *out); |
@@ -529,21 +516,4 @@ static inline void dss_collect_irq_stats(u32 irqstatus, unsigned *irq_arr) | |||
529 | } | 516 | } |
530 | #endif | 517 | #endif |
531 | 518 | ||
532 | struct dss_mgr_ops { | ||
533 | void (*start_update)(struct omap_overlay_manager *mgr); | ||
534 | int (*enable)(struct omap_overlay_manager *mgr); | ||
535 | void (*disable)(struct omap_overlay_manager *mgr); | ||
536 | void (*set_timings)(struct omap_overlay_manager *mgr, | ||
537 | const struct omap_video_timings *timings); | ||
538 | void (*set_lcd_config)(struct omap_overlay_manager *mgr, | ||
539 | const struct dss_lcd_mgr_config *config); | ||
540 | int (*register_framedone_handler)(struct omap_overlay_manager *mgr, | ||
541 | void (*handler)(void *), void *data); | ||
542 | void (*unregister_framedone_handler)(struct omap_overlay_manager *mgr, | ||
543 | void (*handler)(void *), void *data); | ||
544 | }; | ||
545 | |||
546 | int dss_install_mgr_ops(const struct dss_mgr_ops *mgr_ops); | ||
547 | void dss_uninstall_mgr_ops(void); | ||
548 | |||
549 | #endif | 519 | #endif |
diff --git a/drivers/video/omap2/dss/output.c b/drivers/video/omap2/dss/output.c index 6def0d7bbd05..79dea1a1a732 100644 --- a/drivers/video/omap2/dss/output.c +++ b/drivers/video/omap2/dss/output.c | |||
@@ -125,47 +125,56 @@ int dss_install_mgr_ops(const struct dss_mgr_ops *mgr_ops) | |||
125 | 125 | ||
126 | return 0; | 126 | return 0; |
127 | } | 127 | } |
128 | EXPORT_SYMBOL(dss_install_mgr_ops); | ||
128 | 129 | ||
129 | void dss_uninstall_mgr_ops(void) | 130 | void dss_uninstall_mgr_ops(void) |
130 | { | 131 | { |
131 | dss_mgr_ops = NULL; | 132 | dss_mgr_ops = NULL; |
132 | } | 133 | } |
134 | EXPORT_SYMBOL(dss_uninstall_mgr_ops); | ||
133 | 135 | ||
134 | void dss_mgr_set_timings(struct omap_overlay_manager *mgr, | 136 | void dss_mgr_set_timings(struct omap_overlay_manager *mgr, |
135 | const struct omap_video_timings *timings) | 137 | const struct omap_video_timings *timings) |
136 | { | 138 | { |
137 | dss_mgr_ops->set_timings(mgr, timings); | 139 | dss_mgr_ops->set_timings(mgr, timings); |
138 | } | 140 | } |
141 | EXPORT_SYMBOL(dss_mgr_set_timings); | ||
139 | 142 | ||
140 | void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr, | 143 | void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr, |
141 | const struct dss_lcd_mgr_config *config) | 144 | const struct dss_lcd_mgr_config *config) |
142 | { | 145 | { |
143 | dss_mgr_ops->set_lcd_config(mgr, config); | 146 | dss_mgr_ops->set_lcd_config(mgr, config); |
144 | } | 147 | } |
148 | EXPORT_SYMBOL(dss_mgr_set_lcd_config); | ||
145 | 149 | ||
146 | int dss_mgr_enable(struct omap_overlay_manager *mgr) | 150 | int dss_mgr_enable(struct omap_overlay_manager *mgr) |
147 | { | 151 | { |
148 | return dss_mgr_ops->enable(mgr); | 152 | return dss_mgr_ops->enable(mgr); |
149 | } | 153 | } |
154 | EXPORT_SYMBOL(dss_mgr_enable); | ||
150 | 155 | ||
151 | void dss_mgr_disable(struct omap_overlay_manager *mgr) | 156 | void dss_mgr_disable(struct omap_overlay_manager *mgr) |
152 | { | 157 | { |
153 | dss_mgr_ops->disable(mgr); | 158 | dss_mgr_ops->disable(mgr); |
154 | } | 159 | } |
160 | EXPORT_SYMBOL(dss_mgr_disable); | ||
155 | 161 | ||
156 | void dss_mgr_start_update(struct omap_overlay_manager *mgr) | 162 | void dss_mgr_start_update(struct omap_overlay_manager *mgr) |
157 | { | 163 | { |
158 | dss_mgr_ops->start_update(mgr); | 164 | dss_mgr_ops->start_update(mgr); |
159 | } | 165 | } |
166 | EXPORT_SYMBOL(dss_mgr_start_update); | ||
160 | 167 | ||
161 | int dss_mgr_register_framedone_handler(struct omap_overlay_manager *mgr, | 168 | int dss_mgr_register_framedone_handler(struct omap_overlay_manager *mgr, |
162 | void (*handler)(void *), void *data) | 169 | void (*handler)(void *), void *data) |
163 | { | 170 | { |
164 | return dss_mgr_ops->register_framedone_handler(mgr, handler, data); | 171 | return dss_mgr_ops->register_framedone_handler(mgr, handler, data); |
165 | } | 172 | } |
173 | EXPORT_SYMBOL(dss_mgr_register_framedone_handler); | ||
166 | 174 | ||
167 | void dss_mgr_unregister_framedone_handler(struct omap_overlay_manager *mgr, | 175 | void dss_mgr_unregister_framedone_handler(struct omap_overlay_manager *mgr, |
168 | void (*handler)(void *), void *data) | 176 | void (*handler)(void *), void *data) |
169 | { | 177 | { |
170 | dss_mgr_ops->unregister_framedone_handler(mgr, handler, data); | 178 | dss_mgr_ops->unregister_framedone_handler(mgr, handler, data); |
171 | } | 179 | } |
180 | EXPORT_SYMBOL(dss_mgr_unregister_framedone_handler); | ||