]> git.baikalelectronics.ru Git - kernel.git/commit
iio: magn: ak8975: make sure to power down at remove()
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 29 Jun 2016 12:08:37 +0000 (14:08 +0200)
committerJonathan Cameron <jic23@kernel.org>
Thu, 30 Jun 2016 19:40:12 +0000 (20:40 +0100)
commitf588fb016f4208e1b0b84f4d358b66889369f807
treec26b72fafd7c98c3b009feaac5a48b9e38fc18e9
parentd3269f5965bf42076602c36fd029782af5fa21b0
iio: magn: ak8975: make sure to power down at remove()

The code was not powering the magnetometer down properly at
remove(): just cutting the regulators without first setting the
device in power off mode. Fix this.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/ak8975.c