aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/output.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-07-24 06:06:54 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-08-30 01:51:11 -0400
commit9560dc1059222d059d494a64e5da4c54d23838da (patch)
treec42e4363954b421c0f46bb0e336060ad527414b3 /drivers/video/omap2/dss/output.c
parenta73fdc647417699833f22d0f239affe22e062827 (diff)
OMAPDSS: rename omap_dss_device's 'device' field to 'dst'
In the old panel device model we had omap_dss_output entities, representing the encoders in the DSS block. This entity had "device" field, which pointed to the panel that was using the omap_dss_output. With the new panel device model, the omap_dss_output is integrated into omap_dss_device, which now represents a "display entity". Thus the "device" field, now in omap_dss_device, points to the next entity in the display entity-chain. This patch renames the "device" field to "dst", which much better tells what the field points to. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/output.c')
-rw-r--r--drivers/video/omap2/dss/output.c16
1 files changed, 8 insertions, 8 deletions
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