iio: magn: ak8975: refactor regulator handlers
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Jun 2016 12:08:35 +0000 (14:08 +0200)
committerJonathan Cameron <jic23@kernel.org>
Thu, 30 Jun 2016 19:39:58 +0000 (20:39 +0100)
commit9e6c16d98987f6d5df8e59f61b20140d2f1bdcb4
tree8b1d488f764077d711180b7ab891446c90f03c5b
parentb21d3f3452ec3a060c8f576a97adfdd4329b3157
iio: magn: ak8975: refactor regulator handlers

Move the regulator_get() calls directly into the probe() function,
keep only the power_on()/power_off() functions to flick the
regulators on/off.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/ak8975.c
This page took 0.026636 seconds and 5 git commands to generate.