From: Antonio Ospite Date: Tue, 27 Feb 2018 17:41:44 +0000 (+0100) Subject: am7xxx: return EINVAL instead of ENOTSUP in am7xxx_get_device_info() X-Git-Tag: v0.1.7~16 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/627f4b2385f08222e7a38dec6066ac0c710a251b?hp=627f4b2385f08222e7a38dec6066ac0c710a251b 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. ---