aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-03-29 07:08:12 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2018-09-03 09:13:28 -0400
commit6f7ae8c29242df34386ba9cbbc77ba21f69ac18e (patch)
treecacd64292930ad10dba96f4ec28ed7890592c3a7 /drivers/gpu/drm/omapdrm
parente553ea09e26810221707e16842e8c7e05297ac75 (diff)
drm/omap: dss: Remove omap_dss_driver .[gs]et_mirror operations
The .get_mirror() and .set_mirror() omap_dss_driver operations are implemented by the panel-tpo-td043mtea1 driver but are never used. Remove them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm')
-rw-r--r--drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c25
-rw-r--r--drivers/gpu/drm/omapdrm/dss/omapdss.h3
2 files changed, 2 insertions, 26 deletions
diff --git a/drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c b/drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c
index cb6f19f8a0da..34531169c166 100644
--- a/drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c
+++ b/drivers/gpu/drm/omapdrm/displays/panel-tpo-td043mtea1.c
@@ -62,7 +62,6 @@ struct panel_drv_data {
62 int nreset_gpio; 62 int nreset_gpio;
63 u16 gamma[12]; 63 u16 gamma[12];
64 u32 mode; 64 u32 mode;
65 u32 hmirror:1;
66 u32 vmirror:1; 65 u32 vmirror:1;
67 u32 powered_on:1; 66 u32 powered_on:1;
68 u32 spi_suspended:1; 67 u32 spi_suspended:1;
@@ -151,22 +150,6 @@ static int tpo_td043_write_mirror(struct spi_device *spi, bool h, bool v)
151 return tpo_td043_write(spi, 4, reg4); 150 return tpo_td043_write(spi, 4, reg4);
152} 151}
153 152
154static int tpo_td043_set_hmirror(struct omap_dss_device *dssdev, bool enable)
155{
156 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev);
157
158 ddata->hmirror = enable;
159 return tpo_td043_write_mirror(ddata->spi, ddata->hmirror,
160 ddata->vmirror);
161}
162
163static bool tpo_td043_get_hmirror(struct omap_dss_device *dssdev)
164{
165 struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev);
166
167 return ddata->hmirror;
168}
169
170static ssize_t tpo_td043_vmirror_show(struct device *dev, 153static ssize_t tpo_td043_vmirror_show(struct device *dev,
171 struct device_attribute *attr, char *buf) 154 struct device_attribute *attr, char *buf)
172{ 155{
@@ -188,7 +171,7 @@ static ssize_t tpo_td043_vmirror_store(struct device *dev,
188 171
189 val = !!val; 172 val = !!val;
190 173
191 ret = tpo_td043_write_mirror(ddata->spi, ddata->hmirror, val); 174 ret = tpo_td043_write_mirror(ddata->spi, false, val);
192 if (ret < 0) 175 if (ret < 0)
193 return ret; 176 return ret;
194 177
@@ -307,8 +290,7 @@ static int tpo_td043_power_on(struct panel_drv_data *ddata)
307 tpo_td043_write(ddata->spi, 3, TPO_R03_VAL_NORMAL); 290 tpo_td043_write(ddata->spi, 3, TPO_R03_VAL_NORMAL);
308 tpo_td043_write(ddata->spi, 0x20, 0xf0); 291 tpo_td043_write(ddata->spi, 0x20, 0xf0);
309 tpo_td043_write(ddata->spi, 0x21, 0xf0); 292 tpo_td043_write(ddata->spi, 0x21, 0xf0);
310 tpo_td043_write_mirror(ddata->spi, ddata->hmirror, 293 tpo_td043_write_mirror(ddata->spi, false, ddata->vmirror);
311 ddata->vmirror);
312 tpo_td043_write_gamma(ddata->spi, ddata->gamma); 294 tpo_td043_write_gamma(ddata->spi, ddata->gamma);
313 295
314 ddata->powered_on = 1; 296 ddata->powered_on = 1;
@@ -435,9 +417,6 @@ static const struct omap_dss_driver tpo_td043_ops = {
435 .set_timings = tpo_td043_set_timings, 417 .set_timings = tpo_td043_set_timings,
436 .get_timings = tpo_td043_get_timings, 418 .get_timings = tpo_td043_get_timings,
437 .check_timings = tpo_td043_check_timings, 419 .check_timings = tpo_td043_check_timings,
438
439 .set_mirror = tpo_td043_set_hmirror,
440 .get_mirror = tpo_td043_get_hmirror,
441}; 420};
442 421
443static int tpo_td043_probe_of(struct spi_device *spi) 422static int tpo_td043_probe_of(struct spi_device *spi)
diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h b/drivers/gpu/drm/omapdrm/dss/omapdss.h
index 01ba919e34df..c29633765898 100644
--- a/drivers/gpu/drm/omapdrm/dss/omapdss.h
+++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h
@@ -449,9 +449,6 @@ struct omap_dss_driver {
449 int (*enable_te)(struct omap_dss_device *dssdev, bool enable); 449 int (*enable_te)(struct omap_dss_device *dssdev, bool enable);
450 int (*get_te)(struct omap_dss_device *dssdev); 450 int (*get_te)(struct omap_dss_device *dssdev);
451 451
452 bool (*get_mirror)(struct omap_dss_device *dssdev);
453 int (*set_mirror)(struct omap_dss_device *dssdev, bool enable);
454
455 int (*memory_read)(struct omap_dss_device *dssdev, 452 int (*memory_read)(struct omap_dss_device *dssdev,
456 void *buf, size_t size, 453 void *buf, size_t size,
457 u16 x, u16 y, u16 w, u16 h); 454 u16 x, u16 y, u16 w, u16 h);