drivers/usb annotations and fixes
* endianness annotations * endianness fixes * missing get_unaligned/put_unaligned It's pretty much all over the place, changes to different files are independent. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Serial-parts-Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -541,7 +541,7 @@ static int cypress_earthmate_startup (struct usb_serial *serial)
|
||||
/* All Earthmate devices use the separated-count packet
|
||||
format! Idiotic. */
|
||||
priv->pkt_fmt = packet_format_1;
|
||||
if (serial->dev->descriptor.idProduct != PRODUCT_ID_EARTHMATEUSB) {
|
||||
if (serial->dev->descriptor.idProduct != cpu_to_le16(PRODUCT_ID_EARTHMATEUSB)) {
|
||||
/* The old original USB Earthmate seemed able to
|
||||
handle GET_CONFIG requests; everything they've
|
||||
produced since that time crashes if this command is
|
||||
|
Reference in New Issue
Block a user