aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/omap2/displays-new/encoder-tfp410.c10
-rw-r--r--drivers/video/omap2/displays-new/encoder-tpd12s015.c10
-rw-r--r--drivers/video/omap2/dss/apply.c4
-rw-r--r--drivers/video/omap2/dss/dpi.c4
-rw-r--r--drivers/video/omap2/dss/dsi.c4
-rw-r--r--drivers/video/omap2/dss/hdmi.c4
-rw-r--r--drivers/video/omap2/dss/output.c16
-rw-r--r--drivers/video/omap2/dss/sdi.c4
-rw-r--r--drivers/video/omap2/dss/venc.c4
-rw-r--r--include/video/omapdss.h2
10 files changed, 31 insertions, 31 deletions
diff --git a/drivers/video/omap2/displays-new/encoder-tfp410.c b/drivers/video/omap2/displays-new/encoder-tfp410.c
index 454f7714d87a..4a291e756be9 100644
--- a/drivers/video/omap2/displays-new/encoder-tfp410.c
+++ b/drivers/video/omap2/displays-new/encoder-tfp410.c
@@ -44,7 +44,7 @@ static int tfp410_connect(struct omap_dss_device *dssdev,
44 return r; 44 return r;
45 45
46 dst->src = dssdev; 46 dst->src = dssdev;
47 dssdev->device = dst; 47 dssdev->dst = dst;
48 48
49 return 0; 49 return 0;
50} 50}
@@ -59,12 +59,12 @@ static void tfp410_disconnect(struct omap_dss_device *dssdev,
59 if (!omapdss_device_is_connected(dssdev)) 59 if (!omapdss_device_is_connected(dssdev))
60 return; 60 return;
61 61
62 WARN_ON(dst != dssdev->device); 62 WARN_ON(dst != dssdev->dst);
63 if (dst != dssdev->device) 63 if (dst != dssdev->dst)
64 return; 64 return;
65 65
66 dst->src = NULL; 66 dst->src = NULL;
67 dssdev->device = NULL; 67 dssdev->dst = NULL;
68 68
69 in->ops.dpi->disconnect(in, &ddata->dssdev); 69 in->ops.dpi->disconnect(in, &ddata->dssdev);
70} 70}
@@ -244,7 +244,7 @@ static int __exit tfp410_remove(struct platform_device *pdev)
244 244
245 WARN_ON(omapdss_device_is_connected(dssdev)); 245 WARN_ON(omapdss_device_is_connected(dssdev));
246 if (omapdss_device_is_connected(dssdev)) 246 if (omapdss_device_is_connected(dssdev))
247 tfp410_disconnect(dssdev, dssdev->device); 247 tfp410_disconnect(dssdev, dssdev->dst);
248 248
249 omap_dss_put_device(in); 249 omap_dss_put_device(in);
250 250
diff --git a/drivers/video/omap2/displays-new/encoder-tpd12s015.c b/drivers/video/omap2/displays-new/encoder-tpd12s015.c
index a3d29914d3b6..798ef200b055 100644
--- a/drivers/video/omap2/displays-new/encoder-tpd12s015.c
+++ b/drivers/video/omap2/displays-new/encoder-tpd12s015.c
@@ -67,7 +67,7 @@ static int tpd_connect(struct omap_dss_device *dssdev,
67 return r; 67 return r;
68 68
69 dst->src = dssdev; 69 dst->src = dssdev;
70 dssdev->device = dst; 70 dssdev->dst = dst;
71 71
72 INIT_COMPLETION(ddata->hpd_completion); 72 INIT_COMPLETION(ddata->hpd_completion);
73 73
@@ -95,15 +95,15 @@ static void tpd_disconnect(struct omap_dss_device *dssdev,
95 struct panel_drv_data *ddata = to_panel_data(dssdev); 95 struct panel_drv_data *ddata = to_panel_data(dssdev);
96 struct omap_dss_device *in = ddata->in; 96 struct omap_dss_device *in = ddata->in;
97 97
98 WARN_ON(dst != dssdev->device); 98 WARN_ON(dst != dssdev->dst);
99 99
100 if (dst != dssdev->device) 100 if (dst != dssdev->dst)
101 return; 101 return;
102 102
103 gpio_set_value_cansleep(ddata->ct_cp_hpd_gpio, 0); 103 gpio_set_value_cansleep(ddata->ct_cp_hpd_gpio, 0);
104 104
105 dst->src = NULL; 105 dst->src = NULL;
106 dssdev->device = NULL; 106 dssdev->dst = NULL;
107 107
108 in->ops.hdmi->disconnect(in, &ddata->dssdev); 108 in->ops.hdmi->disconnect(in, &ddata->dssdev);
109} 109}
@@ -372,7 +372,7 @@ static int __exit tpd_remove(struct platform_device *pdev)
372 372
373 WARN_ON(omapdss_device_is_connected(dssdev)); 373 WARN_ON(omapdss_device_is_connected(dssdev));
374 if (omapdss_device_is_connected(dssdev)) 374 if (omapdss_device_is_connected(dssdev))
375 tpd_disconnect(dssdev, dssdev->device); 375 tpd_disconnect(dssdev, dssdev->dst);
376 376
377 omap_dss_put_device(in); 377 omap_dss_put_device(in);
378 378
diff --git a/drivers/video/omap2/dss/apply.c b/drivers/video/omap2/dss/apply.c
index d6212d63cfb2..60758dbefd79 100644
--- a/drivers/video/omap2/dss/apply.c
+++ b/drivers/video/omap2/dss/apply.c
@@ -428,8 +428,8 @@ static struct omap_dss_device *dss_mgr_get_device(struct omap_overlay_manager *m
428 if (dssdev == NULL) 428 if (dssdev == NULL)
429 return NULL; 429 return NULL;
430 430
431 while (dssdev->device) 431 while (dssdev->dst)
432 dssdev = dssdev->device; 432 dssdev = dssdev->dst;
433 433
434 if (dssdev->driver) 434 if (dssdev->driver)
435 return dssdev; 435 return dssdev;
diff --git a/drivers/video/omap2/dss/dpi.c b/drivers/video/omap2/dss/dpi.c
index b268d0460038..bd48cde53561 100644
--- a/drivers/video/omap2/dss/dpi.c
+++ b/drivers/video/omap2/dss/dpi.c
@@ -643,9 +643,9 @@ static int dpi_connect(struct omap_dss_device *dssdev,
643static void dpi_disconnect(struct omap_dss_device *dssdev, 643static void dpi_disconnect(struct omap_dss_device *dssdev,
644 struct omap_dss_device *dst) 644 struct omap_dss_device *dst)
645{ 645{
646 WARN_ON(dst != dssdev->device); 646 WARN_ON(dst != dssdev->dst);
647 647
648 if (dst != dssdev->device) 648 if (dst != dssdev->dst)
649 return; 649 return;
650 650
651 omapdss_output_unset_device(dssdev); 651 omapdss_output_unset_device(dssdev);
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c
index 3daaf7ea4281..a598b5812285 100644
--- a/drivers/video/omap2/dss/dsi.c
+++ b/drivers/video/omap2/dss/dsi.c
@@ -5264,9 +5264,9 @@ static int dsi_connect(struct omap_dss_device *dssdev,
5264static void dsi_disconnect(struct omap_dss_device *dssdev, 5264static void dsi_disconnect(struct omap_dss_device *dssdev,
5265 struct omap_dss_device *dst) 5265 struct omap_dss_device *dst)
5266{ 5266{
5267 WARN_ON(dst != dssdev->device); 5267 WARN_ON(dst != dssdev->dst);
5268 5268
5269 if (dst != dssdev->device) 5269 if (dst != dssdev->dst)
5270 return; 5270 return;
5271 5271
5272 omapdss_output_unset_device(dssdev); 5272 omapdss_output_unset_device(dssdev);
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c
index 0b8e4dec2c0e..75f3c740ef8c 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi.c
@@ -900,9 +900,9 @@ static int hdmi_connect(struct omap_dss_device *dssdev,
900static void hdmi_disconnect(struct omap_dss_device *dssdev, 900static void hdmi_disconnect(struct omap_dss_device *dssdev,
901 struct omap_dss_device *dst) 901 struct omap_dss_device *dst)
902{ 902{
903 WARN_ON(dst != dssdev->device); 903 WARN_ON(dst != dssdev->dst);
904 904
905 if (dst != dssdev->device) 905 if (dst != dssdev->dst)
906 return; 906 return;
907 907
908 omapdss_output_unset_device(dssdev); 908 omapdss_output_unset_device(dssdev);
diff --git a/drivers/video/omap2/dss/output.c b/drivers/video/omap2/dss/output.c
index 15f47af8e048..2ab3afa615e8 100644
--- a/drivers/video/omap2/dss/output.c
+++ b/drivers/video/omap2/dss/output.c
@@ -34,9 +34,9 @@ int omapdss_output_set_device(struct omap_dss_device *out,
34 34
35 mutex_lock(&output_lock); 35 mutex_lock(&output_lock);
36 36
37 if (out->device) { 37 if (out->dst) {
38 DSSERR("output already has device %s connected to it\n", 38 DSSERR("output already has device %s connected to it\n",
39 out->device->name); 39 out->dst->name);
40 r = -EINVAL; 40 r = -EINVAL;
41 goto err; 41 goto err;
42 } 42 }
@@ -47,7 +47,7 @@ int omapdss_output_set_device(struct omap_dss_device *out,
47 goto err; 47 goto err;
48 } 48 }
49 49
50 out->device = dssdev; 50 out->dst = dssdev;
51 dssdev->src = out; 51 dssdev->src = out;
52 52
53 mutex_unlock(&output_lock); 53 mutex_unlock(&output_lock);
@@ -66,21 +66,21 @@ int omapdss_output_unset_device(struct omap_dss_device *out)
66 66
67 mutex_lock(&output_lock); 67 mutex_lock(&output_lock);
68 68
69 if (!out->device) { 69 if (!out->dst) {
70 DSSERR("output doesn't have a device connected to it\n"); 70 DSSERR("output doesn't have a device connected to it\n");
71 r = -EINVAL; 71 r = -EINVAL;
72 goto err; 72 goto err;
73 } 73 }
74 74
75 if (out->device->state != OMAP_DSS_DISPLAY_DISABLED) { 75 if (out->dst->state != OMAP_DSS_DISPLAY_DISABLED) {
76 DSSERR("device %s is not disabled, cannot unset device\n", 76 DSSERR("device %s is not disabled, cannot unset device\n",
77 out->device->name); 77 out->dst->name);
78 r = -EINVAL; 78 r = -EINVAL;
79 goto err; 79 goto err;
80 } 80 }
81 81
82 out->device->src = NULL; 82 out->dst->src = NULL;
83 out->device = NULL; 83 out->dst = NULL;
84 84
85 mutex_unlock(&output_lock); 85 mutex_unlock(&output_lock);
86 86
diff --git a/drivers/video/omap2/dss/sdi.c b/drivers/video/omap2/dss/sdi.c
index b3276889b58a..ccc569ae7cca 100644
--- a/drivers/video/omap2/dss/sdi.c
+++ b/drivers/video/omap2/dss/sdi.c
@@ -306,9 +306,9 @@ static int sdi_connect(struct omap_dss_device *dssdev,
306static void sdi_disconnect(struct omap_dss_device *dssdev, 306static void sdi_disconnect(struct omap_dss_device *dssdev,
307 struct omap_dss_device *dst) 307 struct omap_dss_device *dst)
308{ 308{
309 WARN_ON(dst != dssdev->device); 309 WARN_ON(dst != dssdev->dst);
310 310
311 if (dst != dssdev->device) 311 if (dst != dssdev->dst)
312 return; 312 return;
313 313
314 omapdss_output_unset_device(dssdev); 314 omapdss_output_unset_device(dssdev);
diff --git a/drivers/video/omap2/dss/venc.c b/drivers/video/omap2/dss/venc.c
index 0d8ccdeb9639..5f88ac47b7fa 100644
--- a/drivers/video/omap2/dss/venc.c
+++ b/drivers/video/omap2/dss/venc.c
@@ -753,9 +753,9 @@ static int venc_connect(struct omap_dss_device *dssdev,
753static void venc_disconnect(struct omap_dss_device *dssdev, 753static void venc_disconnect(struct omap_dss_device *dssdev,
754 struct omap_dss_device *dst) 754 struct omap_dss_device *dst)
755{ 755{
756 WARN_ON(dst != dssdev->device); 756 WARN_ON(dst != dssdev->dst);
757 757
758 if (dst != dssdev->device) 758 if (dst != dssdev->dst)
759 return; 759 return;
760 760
761 omapdss_output_unset_device(dssdev); 761 omapdss_output_unset_device(dssdev);
diff --git a/include/video/omapdss.h b/include/video/omapdss.h
index 5fa81ddb43ad..3d7c51a6f9ff 100644
--- a/include/video/omapdss.h
+++ b/include/video/omapdss.h
@@ -793,7 +793,7 @@ struct omap_dss_device {
793 /* dynamic fields */ 793 /* dynamic fields */
794 struct omap_overlay_manager *manager; 794 struct omap_overlay_manager *manager;
795 795
796 struct omap_dss_device *device; 796 struct omap_dss_device *dst;
797}; 797};
798 798
799struct omap_dss_hdmi_data 799struct omap_dss_hdmi_data