OSDN Git Service

staging: iio: isl29028: move failure logging into isl29028_set_proxim_sampling()
authorBrian Masney <masneyb@onstation.org>
Tue, 17 Jan 2017 09:24:53 +0000 (04:24 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 22 Jan 2017 13:21:34 +0000 (13:21 +0000)
commitae1e5238f71ca76f79fa79bfb357ea1bbd1b85b8
treee9a39c225ee5207fedcdb0a5f010d59b3c377719
parent19140ae90484a89dc21ccea0cb077b80bf727019
staging: iio: isl29028: move failure logging into isl29028_set_proxim_sampling()

When isl29028_set_proxim_sampling() fails, it was up to both callers to
log the failure message. This patch moves the logging into
isl29028_set_proxim_sampling() 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