Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6c2fb5c authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

irda-usb endianness annotations and fixes

parent 572abae8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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
		 * If we're here, we've found a correct patch
                 * The actual image starts after the "STMP" keyword
                 * The actual image starts after the "STMP" keyword
+2 −2
Original line number Original line Diff line number Diff line
@@ -117,11 +117,11 @@
struct irda_class_desc {
struct irda_class_desc {
	__u8  bLength;
	__u8  bLength;
	__u8  bDescriptorType;
	__u8  bDescriptorType;
	__u16 bcdSpecRevision;
	__le16 bcdSpecRevision;
	__u8  bmDataSize;
	__u8  bmDataSize;
	__u8  bmWindowSize;
	__u8  bmWindowSize;
	__u8  bmMinTurnaroundTime;
	__u8  bmMinTurnaroundTime;
	__u16 wBaudRate;
	__le16 wBaudRate;
	__u8  bmAdditionalBOFs;
	__u8  bmAdditionalBOFs;
	__u8  bIrdaRateSniff;
	__u8  bIrdaRateSniff;
	__u8  bMaxUnicastList;
	__u8  bMaxUnicastList;