irda-usb endianness annotations and fixes
authorAl Viro <viro@ftp.linux.org.uk>
Wed, 21 May 2008 05:32:11 +0000 (06:32 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 21 May 2008 23:55:59 +0000 (16:55 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/net/irda/irda-usb.c
drivers/net/irda/irda-usb.h

index 9081234ab45815c497b8a8a11fdc3a40e2863be5..6f50ed7b183f6efcbe4e458a2346e6a95e687dc8 100644 (file)
@@ -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
index e846c38224a335cbf9619f25abe48e3903dd7b99..a0ca9c1fe1962838f3b253483e4d5edcf341cc84 100644 (file)
 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;