OSDN Git Service

iio: light: isl29018: add vcc regulator operation support
authorAnson Huang <anson.huang@nxp.com>
Tue, 8 Jan 2019 09:09:39 +0000 (09:09 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 12 Jan 2019 19:02:00 +0000 (19:02 +0000)
commit1a02d1239389a9ef81daf4913ce60e9f71f8a61f
tree7590dff3aef9ef11d2c54d2a38a8a67b16274ee4
parent1dca9bdec6cbec80de7ddd0f2df05886c1fa82bc
iio: light: isl29018: add vcc regulator operation support

The light sensor's power supply could be controllable by regulator
on some platforms, such as i.MX6Q-SABRESD board, the light sensor
isl29023's power supply is controlled by a GPIO fixed regulator,
need to make sure the regulator is enabled before any operation of
sensor, this patch adds vcc regulator operation support.

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