]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/omap: convert dss_mgr_set_lcd_config to accept omap_channel
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 4 Nov 2015 18:26:15 +0000 (20:26 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 3 Mar 2016 15:38:22 +0000 (17:38 +0200)
We are removing uses of 'struct omap_overlay_manager'. This patch
changes dss_mgr_set_lcd_config() to accept 'enum omap_channel' instead
of 'struct omap_overlay_manager'.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/dss/dpi.c
drivers/gpu/drm/omapdrm/dss/dsi.c
drivers/gpu/drm/omapdrm/dss/omapdss.h
drivers/gpu/drm/omapdrm/dss/output.c
drivers/gpu/drm/omapdrm/dss/sdi.c

index 91d0f5ab0bf790430ff4a5a6bccdb089251b7f0f..17d1a3ff6baba4e08976ff4d217c55a5221b0145 100644 (file)
@@ -378,7 +378,7 @@ static void dpi_config_lcd_manager(struct dpi_data *dpi)
 
        dpi->mgr_config.lcden_sig_polarity = 0;
 
-       dss_mgr_set_lcd_config(mgr, &dpi->mgr_config);
+       dss_mgr_set_lcd_config(mgr->id, &dpi->mgr_config);
 }
 
 static int dpi_display_enable(struct omap_dss_device *dssdev)
index a06c7b83a7b61cc508a6298e9f74a76b1672a7fb..5709695c7e60a7c1deb1d42e9f7f4df2446deaea 100644 (file)
@@ -4151,7 +4151,7 @@ static int dsi_display_init_dispc(struct platform_device *dsidev,
                        dsi_get_pixel_size(dsi->pix_fmt);
        dsi->mgr_config.lcden_sig_polarity = 0;
 
-       dss_mgr_set_lcd_config(mgr, &dsi->mgr_config);
+       dss_mgr_set_lcd_config(mgr->id, &dsi->mgr_config);
 
        return 0;
 err1:
index e66d4bb468bb7fe76e98bd229e8c71dfccef548e..951fc18cb5ba92d0d54303670bb4a3bfe21da02d 100644 (file)
@@ -88,7 +88,7 @@ void dss_mgr_disconnect(enum omap_channel channel,
                struct omap_dss_device *dst);
 void dss_mgr_set_timings(enum omap_channel channel,
                const struct omap_video_timings *timings);
-void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr,
+void dss_mgr_set_lcd_config(enum omap_channel channel,
                const struct dss_lcd_mgr_config *config);
 int dss_mgr_enable(struct omap_overlay_manager *mgr);
 void dss_mgr_disable(struct omap_overlay_manager *mgr);
index 20255cae6084e533f5c897189d7f6421e99d756e..f926ed7a54991685e4a31d575f922ef14af1028b 100644 (file)
@@ -209,10 +209,10 @@ void dss_mgr_set_timings(enum omap_channel channel,
 }
 EXPORT_SYMBOL(dss_mgr_set_timings);
 
-void dss_mgr_set_lcd_config(struct omap_overlay_manager *mgr,
+void dss_mgr_set_lcd_config(enum omap_channel channel,
                const struct dss_lcd_mgr_config *config)
 {
-       dss_mgr_ops->set_lcd_config(mgr->id, config);
+       dss_mgr_ops->set_lcd_config(channel, config);
 }
 EXPORT_SYMBOL(dss_mgr_set_lcd_config);
 
index 3b16a5b64a678e50dee53c23d80474f031c607fb..a42c405c04e94cad663e5eae8b60565c2fa6ef3b 100644 (file)
@@ -124,7 +124,7 @@ static void sdi_config_lcd_manager(struct omap_dss_device *dssdev)
        sdi.mgr_config.video_port_width = 24;
        sdi.mgr_config.lcden_sig_polarity = 1;
 
-       dss_mgr_set_lcd_config(mgr, &sdi.mgr_config);
+       dss_mgr_set_lcd_config(mgr->id, &sdi.mgr_config);
 }
 
 static int sdi_display_enable(struct omap_dss_device *dssdev)