Skip to content

Commit

Permalink
USB: endianness fix for asix.c
Browse files Browse the repository at this point in the history
the latest update for asix.c reverted some endianness fixes. This
reinstates them.

Signed-off-by: Oliver Neukum <oliver@neukum.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Dec 1, 2006
1 parent 8feabf7 commit 9aa742e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usb/net/asix.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ asix_write_cmd_async(struct usbnet *dev, u8 cmd, u16 value, u16 index,

req->bRequestType = USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE;
req->bRequest = cmd;
req->wValue = value;
req->wIndex = index;
req->wLength = size;
req->wValue = cpu_to_le16(value);
req->wIndex = cpu_to_le16(index);
req->wLength = cpu_to_le16(size);

usb_fill_control_urb(urb, dev->udev,
usb_sndctrlpipe(dev->udev, 0),
Expand Down

0 comments on commit 9aa742e

Please sign in to comment.