iio:magnetometer:ak8975: power regulator support
authorGregor Boirie <gregor.boirie@parrot.com>
Thu, 3 Mar 2016 10:44:05 +0000 (11:44 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 5 Mar 2016 15:25:58 +0000 (15:25 +0000)
commit63d5d525cbbc8938d9fa3d6d6fbd4183e784b6e9
tree1435d337719dc1786c2f203da17964e4e88e5db2
parentd3546af67f4937075d0747adb3bf56d3c46b32f0
iio:magnetometer:ak8975: power regulator support

Add support for an optional regulator which, if found into device-tree,
will power on device at probing time.
The regulator is declared into ak8975 DTS entry as a "vdd-supply" property.

Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/devicetree/bindings/iio/magnetometer/ak8975.txt
drivers/iio/magnetometer/ak8975.c