iio: accel: bmc150-accel: Add rudimentary regulator support
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 15 Nov 2020 20:57:45 +0000 (21:57 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Dec 2020 19:32:41 +0000 (19:32 +0000)
commit672f3022837968958980b0634ebdcf98355a47ed
tree7bec25259ada523ec34a6eafa3afdbfe8acabf8e
parenta1a210bf29a1a232a37c69588aff9690e671a5b3
iio: accel: bmc150-accel: Add rudimentary regulator support

These Bosch accelerometers have two supplies, VDD and VDDIO.
Add some rudimentary support to obtain and enable these
regulators during probe() and disable them during remove()
or on the errorpath.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20201115205745.618455-3-linus.walleij@linaro.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/bmc150-accel-core.c