summaryrefslogtreecommitdiff
path: root/drivers/iio/proximity/Makefile
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2015-08-18 09:16:33 (GMT)
committerJonathan Cameron <jic23@kernel.org>2015-08-31 15:29:52 (GMT)
commit7d87b3c5c8602df4ce6d615b33ae6dc15438fa29 (patch)
treebef0bea1b20eaf2bb7818db6f0ec3443bb4b409f /drivers/iio/proximity/Makefile
parentaff268cd532e99ced3c8f48d01118912eb002bbf (diff)
downloadlinux-7d87b3c5c8602df4ce6d615b33ae6dc15438fa29.tar.xz
iio: tsl4531: fix error handling in tsl4531_check_id()
The tsl4531_check_id() function returned 1 on "found" and 0 on "not found" and negative error codes on failure. This was non-standard and bug prone. The caller treated all non-zero values including error codes as "found". This patch fixes it by changing the tsl4531_check_id() to return zero on success or a negative error code, and updates the caller. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Peter Meerwald <pmeerw@pmeerw.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/proximity/Makefile')
0 files changed, 0 insertions, 0 deletions