Skip to contentSkip to conversation

irda-usb endianness annotations and fixes

PATCH New Al Viro 1 participant 1 message May 21, 2008 Network drivers

lore
Share & tools
lore

Al Viro

author
#0 lore raw

PATCH 1/1 irda-usb endianness annotations and fixes

Content-Length: 1257
Lines: 40

---
 drivers/net/irda/irda-usb.c |    2 +-
 drivers/net/irda/irda-usb.h |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/net/irda/irda-usb.c +1 -1
index 9081234..6f50ed7 100644
@@ -1120,7 +1120,7 @@ static int stir421x_patch_device(struct irda_usb_cb *self)
                 }
         }
 
-        if (self->usbdev->descriptor.bcdDevice == fw_version) {
+        if (self->usbdev->descriptor.bcdDevice == cpu_to_le16(fw_version)) {
                 /*
 		 * If we're here, we've found a correct patch
                  * The actual image starts after the "STMP" keyword
drivers/net/irda/irda-usb.h +2 -2
index e846c38..a0ca9c1 100644
@@ -117,11 +117,11 @@
 struct irda_class_desc {
 	__u8  bLength;
 	__u8  bDescriptorType;
-	__u16 bcdSpecRevision;
+	__le16 bcdSpecRevision;
 	__u8  bmDataSize;
 	__u8  bmWindowSize;
 	__u8  bmMinTurnaroundTime;
-	__u16 wBaudRate;
+	__le16 wBaudRate;
 	__u8  bmAdditionalBOFs;
 	__u8  bIrdaRateSniff;
 	__u8  bMaxUnicastList;
Signature · 1 line
1.5.3.GIT