iio: tsl2772: add support for regulator framework
authorBrian Masney <masneyb@onstation.org>
Fri, 3 Aug 2018 00:18:56 +0000 (20:18 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Aug 2018 11:06:58 +0000 (12:06 +0100)
commit7c14947e4d3d8585cc047b132cd1a4ac3167928c
tree7dd5b13d88db6fb79d3d497bebeb691f3448e232
parent75de3b570b1c80f185df5289cb781e453fd64502
iio: tsl2772: add support for regulator framework

This patch adds support for the regulator framework to the tsl2772
driver. Driver was tested using a LG Nexus 5 (hammerhead) phone with
the two regulators and on a Raspberry Pi 2 without any regulators
controlling the power to the sensor.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/tsl2772.c