OSDN Git Service

iio: magnetometer: mag3110: add vdd/vddio regulator operation support
authorAnson Huang <anson.huang@nxp.com>
Tue, 8 Jan 2019 09:16:04 +0000 (09:16 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 12 Jan 2019 19:00:23 +0000 (19:00 +0000)
commit1dca9bdec6cbec80de7ddd0f2df05886c1fa82bc
tree8244f3d1435e413c642b5f02755a715d8cb2d37f
parent192778fb969c2b9bc33d559b9c7aecdd1498c1ba
iio: magnetometer: mag3110: add vdd/vddio regulator operation support

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

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/magnetometer/mag3110.c