iio: accell: mma8452: add vdd/vddio regulator operation support
authorAnson Huang <anson.huang@nxp.com>
Tue, 8 Jan 2019 09:14:06 +0000 (09:14 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 12 Jan 2019 19:11:26 +0000 (19:11 +0000)
commitf6ff49b8a3b6f774777a21a5a0725d98dee5f2d1
tree8420889558da2d30ce282ba56c8a47fb4f3179b4
parenta7b4f316af857915e27633e48600c146b4978522
iio: accell: mma8452: add vdd/vddio regulator operation support

The accelerometer's power supply could be controllable on some
platforms, such as i.MX6Q-SABRESD board, the mma8451's power supplies
are controlled by a GPIO fixed regulator, need to make sure the
regulators are enabled before any communication with mma8451, this
patch adds vdd/vddio regulator operation support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/mma8452.c