diff options
| author | Greg Kroah-Hartman <greg@kroah.com> | 2004-12-20 01:15:36 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <greg@kroah.com> | 2004-12-20 01:15:36 -0800 |
| commit | 552c4455c79db5117174280fc377ce8cccaf6ba4 (patch) | |
| tree | 484def6b9103468ba2610b40f9d272e9bd4b6514 /include/linux/usb.h | |
| parent | 46624aa39077c1d8a7d05550e81c4f0674ead48e (diff) | |
USB: change wMaxPacketSize field in struct usb_config_descriptor to be __le16
Yet another step in the quest to get all USB data structures to be native
endian.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'include/linux/usb.h')
| -rw-r--r-- | include/linux/usb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index dd698c12b7ce..332e07e86b11 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h @@ -1125,7 +1125,7 @@ usb_maxpacket(struct usb_device *udev, int pipe, int is_out) return 0; /* NOTE: only 0x07ff bits are for packet size... */ - return ep->desc.wMaxPacketSize; + return le16_to_cpu(ep->desc.wMaxPacketSize); } /* -------------------------------------------------------------------------- */ |
