Skip to content

Commit

Permalink
irda-usb endianness annotations and fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed May 21, 2008
1 parent 572abae commit f6c2fb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/net/irda/irda-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/irda/irda-usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f6c2fb5

Please sign in to comment.