commit | bcf5104e27187b8441aa10714b2dbe49f154bc92 | [log] [tgz] |
---|---|---|
author | Brian Masney <masneyb@onstation.org> | Tue Jan 17 04:24:54 2017 -0500 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Jan 22 13:21:35 2017 +0000 |
tree | 4212bcf86e51ce2ceb07c4e7e6ac56ab9cc40b07 | |
parent | ae1e5238f71ca76f79fa79bfb357ea1bbd1b85b8 [diff] |
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>