From: Archit Taneja Date: Mon, 5 Sep 2011 11:31:08 +0000 (+0530) Subject: OMAP: DSS2: DSI: Send zero length packet in dsi_vc_send_null() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=18b7d09908fdef8755d934a0c37d709e94e8461a;p=linux-beck.git 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 Signed-off-by: Tomi Valkeinen --- 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);