summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.name>2006-11-23 12:45:31 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-01 14:25:51 -0800
commit9aa742ef7c1a7ff8e6df92a93ce3688e99fa66e3 (patch)
treee79cc43decf6b8d9b14e180a760cab7aa246ac1c /drivers/usb
parent8feabf70f51f3f6772e2beda608a0ebca1dbf46a (diff)
downloadblackbird-op-linux-9aa742ef7c1a7ff8e6df92a93ce3688e99fa66e3.tar.gz
blackbird-op-linux-9aa742ef7c1a7ff8e6df92a93ce3688e99fa66e3.zip
USB: endianness fix for asix.c
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/net/asix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/net/asix.c b/drivers/usb/net/asix.c
index 881841e600de..95e682e2c9d6 100644
--- a/drivers/usb/net/asix.c
+++ b/drivers/usb/net/asix.c
@@ -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),
OpenPOWER on IntegriCloud