]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: tsl2583: return proper error code instead of -1
authorBrian Masney <masneyb@onstation.org>
Fri, 28 Oct 2016 10:00:14 +0000 (06:00 -0400)
committerJonathan Cameron <jic23@kernel.org>
Tue, 1 Nov 2016 18:50:04 +0000 (18:50 +0000)
commitb2889a7bba4b4567e13a43541a8a8c2d2e2755a3
treea408318409e03a6e06e4dfa851db62ad57898deb
parent97becb2637d610fcc6920a3bd3f162f928cd77d7
staging: iio: tsl2583: return proper error code instead of -1

taos_als_calibrate() has a code path where -1 is returned. This patch
changes the code so that a proper error code is returned.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/tsl2583.c