@@ -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,