From patchwork Sun Jan 18 09:34:37 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uri Shkolnik X-Patchwork-Id: 2999 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 n0I9WlAg012345 for ; Sun, 18 Jan 2009 01:32:47 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762436AbZARJem (ORCPT ); Sun, 18 Jan 2009 04:34:42 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1761762AbZARJem (ORCPT ); Sun, 18 Jan 2009 04:34:42 -0500 Received: from web110810.mail.gq1.yahoo.com ([67.195.13.233]:44223 "HELO web110810.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756491AbZARJei (ORCPT ); Sun, 18 Jan 2009 04:34:38 -0500 Received: (qmail 15377 invoked by uid 60001); 18 Jan 2009 09:34:37 -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:MIME-Version:Content-Type:Message-ID; b=wUxqPq5C/wCz2h5PKw2+TnO+nW+LYxFmozAMopjS9kbKnII/szQ61HP1XFXUKlkk8vajZPKL5zmpputoQZACTnbsil/nJIQk1e4767BW016vw03vgBUOgilGUtrMQ2IqTVaJLcKiKNajw/6vIWeXvq4PVRr3MXNQol75ACL84AQ=; X-YMail-OSG: AzA9gNwVM1nR3nHCax3vEB6OHdAhdAJKWoT892xJzg3O3vmv.V8U3FfIMbOM0VwFcRQHcxLdfVX1Fq82tOt0gnzklsroHN.YXFCQwxdzUrFaCl4_GajcZyk86AMXw4I15GEvkG4MUJFnLfuSkl_HgsvkD0gHyilAWJjQANsh6pSIyHp8CUxpXyEaQ5x..GFGsP0Tjk9N10dTLwKDaSTFVNGsbHjQpaNMgFo- Received: from [199.203.99.233] by web110810.mail.gq1.yahoo.com via HTTP; Sun, 18 Jan 2009 01:34:37 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Sun, 18 Jan 2009 01:34:37 -0800 (PST) From: Uri Shkolnik Reply-To: urishk@yahoo.com Subject: [PATCH] Siano 10237 __le32 to le32 To: linux-media@vger.kernel.org Cc: Mauro Carvalho , Trent Piepho MIME-Version: 1.0 Message-ID: <829464.15115.qm@web110810.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 1232271170 -7200 # Node ID 56b506432a55cebe0f52eb28cc8b55584bc9a429 # Parent 50775d37b85469c33f4023203a6c54394163c4bd __le32 to le32 From: Uri Shkolnik Trent Piepho made a commit review about the usage of __le32, as a result the code has been modified to use le32 instead. 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 50775d37b854 -r 56b506432a55 linux/drivers/media/dvb/siano/smscoreapi.c --- a/linux/drivers/media/dvb/siano/smscoreapi.c Thu Jan 15 15:39:15 2009 +0200 +++ b/linux/drivers/media/dvb/siano/smscoreapi.c Sun Jan 18 11:32:50 2009 +0200 @@ -481,8 +481,8 @@ static int smscore_load_firmware_family2 u8 *payload = firmware->Payload; int rc = 0; - firmware->StartAddress = __le32_to_cpu(firmware->StartAddress); - firmware->Length = __le32_to_cpu(firmware->Length); + firmware->StartAddress = le32_to_cpu(firmware->StartAddress); + firmware->Length = le32_to_cpu(firmware->Length); mem_address = firmware->StartAddress; diff -r 50775d37b854 -r 56b506432a55 linux/drivers/media/dvb/siano/smsendian.c --- a/linux/drivers/media/dvb/siano/smsendian.c Thu Jan 15 15:39:15 2009 +0200 +++ b/linux/drivers/media/dvb/siano/smsendian.c Sun Jan 18 11:32:50 2009 +0200 @@ -34,7 +34,7 @@ void smsendian_handle_tx_message(void *b switch (msg->xMsgHeader.msgType) { case MSG_SMS_DATA_DOWNLOAD_REQ: { - msg->msgData[0] = __le32_to_cpu(msg->msgData[0]); + msg->msgData[0] = le32_to_cpu(msg->msgData[0]); break; } @@ -43,7 +43,7 @@ void smsendian_handle_tx_message(void *b sizeof(struct SmsMsgHdr_ST))/4; for (i = 0; i < msgWords; i++) - msg->msgData[i] = __le32_to_cpu(msg->msgData[i]); + msg->msgData[i] = le32_to_cpu(msg->msgData[i]); break; } @@ -62,7 +62,7 @@ void smsendian_handle_rx_message(void *b { struct SmsVersionRes_ST *ver = (struct SmsVersionRes_ST *) msg; - ver->ChipModel = __le16_to_cpu(ver->ChipModel); + ver->ChipModel = le16_to_cpu(ver->ChipModel); break; } @@ -79,7 +79,7 @@ void smsendian_handle_rx_message(void *b sizeof(struct SmsMsgHdr_ST))/4; for (i = 0; i < msgWords; i++) - msg->msgData[i] = __le32_to_cpu(msg->msgData[i]); + msg->msgData[i] = le32_to_cpu(msg->msgData[i]); break; } @@ -92,9 +92,9 @@ void smsendian_handle_message_header(voi #ifdef __BIG_ENDIAN struct SmsMsgHdr_ST *phdr = (struct SmsMsgHdr_ST *)msg; - phdr->msgType = __le16_to_cpu(phdr->msgType); - phdr->msgLength = __le16_to_cpu(phdr->msgLength); - phdr->msgFlags = __le16_to_cpu(phdr->msgFlags); + phdr->msgType = le16_to_cpu(phdr->msgType); + phdr->msgLength = le16_to_cpu(phdr->msgLength); + phdr->msgFlags = le16_to_cpu(phdr->msgFlags); #endif /* __BIG_ENDIAN */ } diff -r 50775d37b854 -r 56b506432a55 linux/drivers/media/dvb/siano/smsusb.c --- a/linux/drivers/media/dvb/siano/smsusb.c Thu Jan 15 15:39:15 2009 +0200 +++ b/linux/drivers/media/dvb/siano/smsusb.c Sun Jan 18 11:32:50 2009 +0200 @@ -334,7 +334,7 @@ static int smsusb_init_device(struct usb case SMS_VEGA: dev->buffer_size = USB2_BUFFER_SIZE; dev->response_alignment = - __le16_to_cpu(dev->udev->ep_in[1]->desc.wMaxPacketSize) - + le16_to_cpu(dev->udev->ep_in[1]->desc.wMaxPacketSize) - sizeof(struct SmsMsgHdr_ST); params.flags |= SMS_DEVICE_FAMILY2;