am7xxx: fail if USB configuration or interface are not right
authorAntonio Ospite <ospite@studenti.unina.it>
Sat, 23 Mar 2013 21:40:25 +0000 (22:40 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Sat, 23 Mar 2013 22:44:40 +0000 (23:44 +0100)
commit23ec35553ab4f1e7f1509f09d63987f2251e3873
tree6f91e6224a2b74205ecc00306736ebc306335ddc
parenta29024a9e977da3836c44d778703fd951e47e19b
am7xxx: fail if USB configuration or interface are not right

Check the return values of libusb_set_configuration() and
libusb_claim_interface(), this way it is easier to spot devices which
require a different setting.
src/am7xxx.c