aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/rfbi.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-04-19 08:09:34 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-06-17 07:00:51 -0400
commit1f68d9c4b660487c5878c4800ff5a402abc6c005 (patch)
tree1309d1567c05c201739d93db178736d012a48eb2 /drivers/video/omap2/dss/rfbi.c
parentd3923933930273a2c1f724c50fe1dd829e196b31 (diff)
OMAPDSS: combine omap_dss_output into omap_dss_device
We currently have omap_dss_device, which represents an external display device, sometimes an external encoder, sometimes a panel. Then we have omap_dss_output, which represents DSS's output encoder. In the future with new display device model, we construct a video pipeline from the display blocks. To accomplish this, all the blocks need to be presented by the same entity. Thus, this patch combines omap_dss_output into omap_dss_device. Some of the fields in omap_dss_output are already found in omap_dss_device, but some are not. This means we'll have DSS output specific fields in omap_dss_device, which is not very nice. However, it is easier to just keep those output specific fields there for now, and after transition to new display device model is made, they can be cleaned up easier than could be done now. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/rfbi.c')
-rw-r--r--drivers/video/omap2/dss/rfbi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/video/omap2/dss/rfbi.c b/drivers/video/omap2/dss/rfbi.c
index 30ff0e0d4629..35836eb73a62 100644
--- a/drivers/video/omap2/dss/rfbi.c
+++ b/drivers/video/omap2/dss/rfbi.c
@@ -117,7 +117,7 @@ static struct {
117 int data_lines; 117 int data_lines;
118 struct rfbi_timings intf_timings; 118 struct rfbi_timings intf_timings;
119 119
120 struct omap_dss_output output; 120 struct omap_dss_device output;
121} rfbi; 121} rfbi;
122 122
123static inline void rfbi_write_reg(const struct rfbi_reg idx, u32 val) 123static inline void rfbi_write_reg(const struct rfbi_reg idx, u32 val)
@@ -890,7 +890,7 @@ static void rfbi_config_lcd_manager(struct omap_dss_device *dssdev)
890 890
891int omapdss_rfbi_display_enable(struct omap_dss_device *dssdev) 891int omapdss_rfbi_display_enable(struct omap_dss_device *dssdev)
892{ 892{
893 struct omap_dss_output *out = &rfbi.output; 893 struct omap_dss_device *out = &rfbi.output;
894 int r; 894 int r;
895 895
896 if (out == NULL || out->manager == NULL) { 896 if (out == NULL || out->manager == NULL) {
@@ -925,7 +925,7 @@ EXPORT_SYMBOL(omapdss_rfbi_display_enable);
925 925
926void omapdss_rfbi_display_disable(struct omap_dss_device *dssdev) 926void omapdss_rfbi_display_disable(struct omap_dss_device *dssdev)
927{ 927{
928 struct omap_dss_output *out = &rfbi.output; 928 struct omap_dss_device *out = &rfbi.output;
929 929
930 dss_mgr_unregister_framedone_handler(out->manager, 930 dss_mgr_unregister_framedone_handler(out->manager,
931 framedone_callback, NULL); 931 framedone_callback, NULL);
@@ -1013,11 +1013,11 @@ static int rfbi_probe_pdata(struct platform_device *rfbidev)
1013 1013
1014static void rfbi_init_output(struct platform_device *pdev) 1014static void rfbi_init_output(struct platform_device *pdev)
1015{ 1015{
1016 struct omap_dss_output *out = &rfbi.output; 1016 struct omap_dss_device *out = &rfbi.output;
1017 1017
1018 out->pdev = pdev; 1018 out->dev = &pdev->dev;
1019 out->id = OMAP_DSS_OUTPUT_DBI; 1019 out->id = OMAP_DSS_OUTPUT_DBI;
1020 out->type = OMAP_DISPLAY_TYPE_DBI; 1020 out->output_type = OMAP_DISPLAY_TYPE_DBI;
1021 out->name = "rfbi.0"; 1021 out->name = "rfbi.0";
1022 out->dispc_channel = OMAP_DSS_CHANNEL_LCD; 1022 out->dispc_channel = OMAP_DSS_CHANNEL_LCD;
1023 1023
@@ -1026,7 +1026,7 @@ static void rfbi_init_output(struct platform_device *pdev)
1026 1026
1027static void __exit rfbi_uninit_output(struct platform_device *pdev) 1027static void __exit rfbi_uninit_output(struct platform_device *pdev)
1028{ 1028{
1029 struct omap_dss_output *out = &rfbi.output; 1029 struct omap_dss_device *out = &rfbi.output;
1030 1030
1031 dss_unregister_output(out); 1031 dss_unregister_output(out);
1032} 1032}