# HG changeset patch # User Uri Shkolnik <u...@siano-ms.com> # Date 1232271170 -7200 # Node ID 56b506432a55cebe0f52eb28cc8b55584bc9a429 # Parent 50775d37b85469c33f4023203a6c54394163c4bd __le32 to le32
From: Uri Shkolnik <u...@siano-ms.com> 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 <u...@siano-ms.com> 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; -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html