iio: accel: kxsd9: Fetch and handle regulators
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 1 Sep 2016 09:44:46 +0000 (11:44 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 18 Sep 2016 10:33:28 +0000 (11:33 +0100)
commit2bb4a02aad0257148be4f51e3b4c9c0077787e17
treeb970d5c272ea3b3957cd87393feffb56e891a87d
parent11adc2b218028934540be4f235a486d575d74b54
iio: accel: kxsd9: Fetch and handle regulators

This adds supply regulator handling for the VDD and IOVDD inputs
on the KXSD9 component, makes sure to bring the regulators online
during probe and disable them on remove or the errorpath.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/kxsd9.c