am7xxx: return EINVAL instead of ENOTSUP in am7xxx_get_device_info()
authorAntonio Ospite <ao2@ao2.it>
Tue, 27 Feb 2018 17:41:44 +0000 (18:41 +0100)
committerAntonio Ospite <ao2@ao2.it>
Tue, 27 Feb 2018 22:21:06 +0000 (23:21 +0100)
commit627f4b2385f08222e7a38dec6066ac0c710a251b
tree14078d6859c1e4c04882a36cbf511a5a34247ec7
parentbbebd199987581ee6f344c89bfb02237dc0ab0bd
am7xxx: return EINVAL instead of ENOTSUP in am7xxx_get_device_info()

All the other error paths about invalid results or unsupported
operations return EINVAL, so remove the only instance of ENOTSUP.

Since the API documentation makes no promises on the actual negative
value of the returned error, this little change of behavior should be
fine.
src/am7xxx.c