[PATCH] Siano 10236 SPI drv minor casting issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



# HG changeset patch
# User Uri Shkolnik <uris@xxxxxxxxxxxx>
# Date 1232026755 -7200
# Node ID 50775d37b85469c33f4023203a6c54394163c4bd
# Parent  794f836ffef2b3300056c2f602768ad76ae25877
Fix minor casting issue

From: Uri Shkolnik <uris@xxxxxxxxxxxx>

Fix minor casting issue in the SPI core driver

Priority: normal

Signed-off-by: Uri Shkolnik <uris@xxxxxxxxxxxx>

diff -r 794f836ffef2 -r 50775d37b854 linux/drivers/media/dvb/siano/smsspicommon.c
--- a/linux/drivers/media/dvb/siano/smsspicommon.c	Thu Jan 15 15:34:26 2009 +0200
+++ b/linux/drivers/media/dvb/siano/smsspicommon.c	Thu Jan 15 15:39:15 2009 +0200
@@ -244,10 +244,11 @@ void smsspi_common_transfer_msg(struct _
 		if ((unused_bytes <= 0) && (bytes_to_transfer > 0)) {
 			len = min(bytes_to_transfer, RX_PACKET_SIZE);
 			PRN_DBG((TXT("transfering block of %d bytes\n"), len));
-			dev->cb.transfer_data_cb(dev->phy_context, txbuf,
-						 tx_phy_addr,
-						 (char *)buf->ptr + offset,
-						 buf->phy_addr + offset, len);
+			dev->cb.transfer_data_cb(dev->phy_context,
+				(unsigned char *)txbuf,
+				tx_phy_addr,
+				(unsigned char *)buf->ptr + offset,
+				buf->phy_addr + offset, len);
 		}
 		missing_bytes =
 		    smsspi_common_find_msg(dev, buf, offset, len,



      
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux