linux: Correctly return device configuration when using usbfs
authorChris Dickens <christopher.a.dickens@gmail.com>
Wed, 6 Jan 2016 17:57:15 +0000 (09:57 -0800)
committerChris Dickens <christopher.a.dickens@gmail.com>
Sun, 24 Jan 2016 06:57:36 +0000 (22:57 -0800)
commitba73390b74cd6af292017b88e3a95fb5b8223c85
tree32411da44063271fd2460ab33fd8f4dc7eb4fd2a
parentd7cf58bafb9c77514db3381e115dae5129ffba2d
linux: Correctly return device configuration when using usbfs

libusb_get_configuration() has been broken when using a Linux kernel
that requires the use of usbfs to obtain the current configuration
value. This commit resolves this issue and also modifies the
usbfs_get_active_config() function to update the cached active
configuration value itself instead of requiring the callers to do it.

Closes #137

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/linux_usbfs.c
libusb/version_nano.h