Linux: Fix usbfs/sysfs config descriptor handling on big-endian
authorHector Martin <hector@marcansoft.com>
Wed, 25 Aug 2010 01:21:57 +0000 (03:21 +0200)
committerPeter Stuge <peter@stuge.se>
Mon, 22 Nov 2010 04:46:37 +0000 (05:46 +0100)
commit7f2e9f0776386997d2b4c4c47598ab88e3caeb7a
treecf24036e23cef961e9d27fa385c55d64b99ab3ee
parent2aa8984e59cf0f492e7fbebb8924f54f6160cc5e
Linux: Fix usbfs/sysfs config descriptor handling on big-endian

usbfs endian-swaps, sysfs doesn't, not the other way around. Fixes #51;
descriptor endian parsing is backwards using sysfs on big-endian hosts.
usbfs is untested.

Signed-off-by: Hector Martin <hector@marcansoft.com>
[stuge: checked against Documentation/usb/proc_usb_info.txt]
libusb/os/linux_usbfs.c