summaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/dsi.c
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2011-09-05 17:01:08 +0530
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-09-30 16:16:29 +0300
commit18b7d09908fdef8755d934a0c37d709e94e8461a (patch)
tree788cc01f73685b86a8b2a4ff5191eb469065b4a6 /drivers/video/omap2/dss/dsi.c
parenta3b3cc2b883aac18a3388a405db809a99d66e3cf (diff)
downloadlinux-stable-18b7d09908fdef8755d934a0c37d709e94e8461a.tar.gz
linux-stable-18b7d09908fdef8755d934a0c37d709e94e8461a.tar.bz2
linux-stable-18b7d09908fdef8755d934a0c37d709e94e8461a.zip
OMAP: DSS2: DSI: Send zero length packet in dsi_vc_send_null()
dsi_vc_send_null() currently sends a long packet with data type MIPI_DSI_NULL_PACKET and packet length 4. Modify it to send a zero length long packet. This leads to sending only the long packet header and no payload packets and hence the transfer completes faster. The function can be modified later if there is a need to send null packets of a non-zero length. 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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c
index 2b7d17b7812c..77aca3e9a058 100644
--- a/drivers/video/omap2/dss/dsi.c
+++ b/drivers/video/omap2/dss/dsi.c
@@ -3074,10 +3074,9 @@ static int dsi_vc_send_short(struct platform_device *dsidev, int channel,
int dsi_vc_send_null(struct omap_dss_device *dssdev, int channel)
{
struct platform_device *dsidev = dsi_get_dsidev_from_dssdev(dssdev);
- u8 nullpkg[] = {0, 0, 0, 0};
- return dsi_vc_send_long(dsidev, channel, MIPI_DSI_NULL_PACKET, nullpkg,
- 4, 0);
+ return dsi_vc_send_long(dsidev, channel, MIPI_DSI_NULL_PACKET, NULL,
+ 0, 0);
}
EXPORT_SYMBOL(dsi_vc_send_null);