aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2011-08-22 05:14:27 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-09-30 09:16:27 -0400
commit5c716a04ed1f5b8a3e1a8953b71f89441a70d1d4 (patch)
treeccccd669711bdb115c638605c69ec1c89fbc9cb7
parent6ff8aa3182db248db4d91e574254316025c0243c (diff)
OMAP: DSS2: DSI: Remove functions dsi_vc_dcs_read_1() and dsi_vc_dcs_read_2()
Remove functions dsi_vc_dcs_read_1() and dsi_vc_dcs_read_2(), these are used when the panel is expected to return 1 and 2 bytes respecitvely. This was manily used for debugging purposes. These functions should be implemented in the panel driver if needed. Signed-off-by: Archit Taneja <archit@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/video/omap2/dss/dsi.c38
-rw-r--r--include/video/omapdss.h4
2 files changed, 0 insertions, 42 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c
index bb5588932b0..82516471b64 100644
--- a/drivers/video/omap2/dss/dsi.c
+++ b/drivers/video/omap2/dss/dsi.c
@@ -3307,44 +3307,6 @@ err:
3307} 3307}
3308EXPORT_SYMBOL(dsi_vc_dcs_read); 3308EXPORT_SYMBOL(dsi_vc_dcs_read);
3309 3309
3310int dsi_vc_dcs_read_1(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd,
3311 u8 *data)
3312{
3313 int r;
3314
3315 r = dsi_vc_dcs_read(dssdev, channel, dcs_cmd, data, 1);
3316
3317 if (r < 0)
3318 return r;
3319
3320 if (r != 1)
3321 return -EIO;
3322
3323 return 0;
3324}
3325EXPORT_SYMBOL(dsi_vc_dcs_read_1);
3326
3327int dsi_vc_dcs_read_2(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd,
3328 u8 *data1, u8 *data2)
3329{
3330 u8 buf[2];
3331 int r;
3332
3333 r = dsi_vc_dcs_read(dssdev, channel, dcs_cmd, buf, 2);
3334
3335 if (r < 0)
3336 return r;
3337
3338 if (r != 2)
3339 return -EIO;
3340
3341 *data1 = buf[0];
3342 *data2 = buf[1];
3343
3344 return 0;
3345}
3346EXPORT_SYMBOL(dsi_vc_dcs_read_2);
3347
3348int dsi_vc_set_max_rx_packet_size(struct omap_dss_device *dssdev, int channel, 3310int dsi_vc_set_max_rx_packet_size(struct omap_dss_device *dssdev, int channel,
3349 u16 len) 3311 u16 len)
3350{ 3312{
diff --git a/include/video/omapdss.h b/include/video/omapdss.h
index 49ffdd201c2..a8a43de3dd8 100644
--- a/include/video/omapdss.h
+++ b/include/video/omapdss.h
@@ -241,10 +241,6 @@ int dsi_vc_generic_write_nosync(struct omap_dss_device *dssdev, int channel,
241 u8 *data, int len); 241 u8 *data, int len);
242int dsi_vc_dcs_read(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd, 242int dsi_vc_dcs_read(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd,
243 u8 *buf, int buflen); 243 u8 *buf, int buflen);
244int dsi_vc_dcs_read_1(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd,
245 u8 *data);
246int dsi_vc_dcs_read_2(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd,
247 u8 *data1, u8 *data2);
248int dsi_vc_set_max_rx_packet_size(struct omap_dss_device *dssdev, int channel, 244int dsi_vc_set_max_rx_packet_size(struct omap_dss_device *dssdev, int channel,
249 u16 len); 245 u16 len);
250int dsi_vc_send_null(struct omap_dss_device *dssdev, int channel); 246int dsi_vc_send_null(struct omap_dss_device *dssdev, int channel);