From patchwork Thu Jan 15 13:38:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uri Shkolnik X-Patchwork-Id: 2478 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n0FDYqN6019733 for ; Thu, 15 Jan 2009 05:34:52 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754587AbZAONiz (ORCPT ); Thu, 15 Jan 2009 08:38:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757293AbZAONiy (ORCPT ); Thu, 15 Jan 2009 08:38:54 -0500 Received: from web110816.mail.gq1.yahoo.com ([67.195.13.239]:23004 "HELO web110816.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754587AbZAONiy (ORCPT ); Thu, 15 Jan 2009 08:38:54 -0500 Received: (qmail 97899 invoked by uid 60001); 15 Jan 2009 13:38:53 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=eQhYxMuVxKDShRwJwvdOYXKf74ksDnwfQNQoksow15stNW1ggtp4DhgMcHeaBjXEo+37BGTbZhACu+6/cozjfFb36TZ+MMS+TIBr+IsFIm13Oheb/NCHjlwbIy7KMf1OXQBEU9xYGpc28U4liQcsIRiY49nRhWx6TzObyQL/iyM=; X-YMail-OSG: BV8guYYVM1kxuDKR6356I.vCGrIgQW_Eka1fLFAD.Kbxyf34tPmq1QywEYWq670hAxr6AmB8MB.NbXImE8IcG7Rg7OX92u4.mtWJmVla8gRw2d.v99EoJv3KV4.HF4Cd4om5OV8Iql2bcb_xZTezRm.jKmb_0EJdW761GjvE4WC2X9uwxFEOf8hOQsCNwJkOW3tIKv09sHEErLjQ8uiQ1fmc1L_UP0OPwkA- Received: from [199.203.99.233] by web110816.mail.gq1.yahoo.com via HTTP; Thu, 15 Jan 2009 05:38:52 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Thu, 15 Jan 2009 05:38:52 -0800 (PST) From: Uri Shkolnik Reply-To: urishk@yahoo.com Subject: [PATCH] Siano 10236 SPI drv minor casting issue To: linux-media@vger.kernel.org Cc: Mauro Carvalho In-Reply-To: <107484.95792.qm@web110807.mail.gq1.yahoo.com> MIME-Version: 1.0 Message-ID: <951145.97764.qm@web110816.mail.gq1.yahoo.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org # HG changeset patch # User Uri Shkolnik # Date 1232026755 -7200 # Node ID 50775d37b85469c33f4023203a6c54394163c4bd # Parent 794f836ffef2b3300056c2f602768ad76ae25877 Fix minor casting issue From: Uri Shkolnik Fix minor casting issue in the SPI core driver Priority: normal Signed-off-by: Uri Shkolnik --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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,