diff options
author | Archit Taneja <archit@ti.com> | 2011-08-22 14:44:27 +0530 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-09-30 16:16:27 +0300 |
commit | 5c716a04ed1f5b8a3e1a8953b71f89441a70d1d4 (patch) | |
tree | ccccd669711bdb115c638605c69ec1c89fbc9cb7 /drivers/video/omap2/dss/dsi.c | |
parent | 6ff8aa3182db248db4d91e574254316025c0243c (diff) | |
download | op-kernel-dev-5c716a04ed1f5b8a3e1a8953b71f89441a70d1d4.zip op-kernel-dev-5c716a04ed1f5b8a3e1a8953b71f89441a70d1d4.tar.gz |
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>
Diffstat (limited to 'drivers/video/omap2/dss/dsi.c')
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index bb55889..8251647 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c @@ -3307,44 +3307,6 @@ err: } EXPORT_SYMBOL(dsi_vc_dcs_read); -int dsi_vc_dcs_read_1(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd, - u8 *data) -{ - int r; - - r = dsi_vc_dcs_read(dssdev, channel, dcs_cmd, data, 1); - - if (r < 0) - return r; - - if (r != 1) - return -EIO; - - return 0; -} -EXPORT_SYMBOL(dsi_vc_dcs_read_1); - -int dsi_vc_dcs_read_2(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd, - u8 *data1, u8 *data2) -{ - u8 buf[2]; - int r; - - r = dsi_vc_dcs_read(dssdev, channel, dcs_cmd, buf, 2); - - if (r < 0) - return r; - - if (r != 2) - return -EIO; - - *data1 = buf[0]; - *data2 = buf[1]; - - return 0; -} -EXPORT_SYMBOL(dsi_vc_dcs_read_2); - int dsi_vc_set_max_rx_packet_size(struct omap_dss_device *dssdev, int channel, u16 len) { |