Skip to content

Commit

Permalink
hso: driver fix for big endian machines.
Browse files Browse the repository at this point in the history
Filip Aben says this fix is neccessary for big endian machines.

Signed-off-by: Denis Joseph Barrow <D.Barow@option.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Denis Joseph Barrow authored and David S. Miller committed Jan 13, 2009
1 parent a73be04 commit b74f62c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/usb/hso.c
Original file line number Diff line number Diff line change
Expand Up @@ -1792,8 +1792,8 @@ static int mux_device_request(struct hso_serial *serial, u8 type, u16 port,

/* initialize */
ctrl_req->wValue = 0;
ctrl_req->wIndex = hso_port_to_mux(port);
ctrl_req->wLength = size;
ctrl_req->wIndex = cpu_to_le16(hso_port_to_mux(port));
ctrl_req->wLength = cpu_to_le16(size);

if (type == USB_CDC_GET_ENCAPSULATED_RESPONSE) {
/* Reading command */
Expand Down

0 comments on commit b74f62c

Please sign in to comment.