]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: iio: isl29028: move failure logging into isl29028_set_als_scale()
authorBrian Masney <masneyb@onstation.org>
Tue, 17 Jan 2017 09:24:54 +0000 (04:24 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 22 Jan 2017 13:21:35 +0000 (13:21 +0000)
commitbcf5104e27187b8441aa10714b2dbe49f154bc92
tree4212bcf86e51ce2ceb07c4e7e6ac56ab9cc40b07
parentae1e5238f71ca76f79fa79bfb357ea1bbd1b85b8
staging: iio: isl29028: move failure logging into isl29028_set_als_scale()

When isl29028_set_als_scale() fails, it was up to both callers to log
the failure message. This patch moves the logging into
isl29028_set_als_scale() to reduce the overall amount of code in the
driver.

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