hwmon: (lm90) Add power control
authorWei Ni <wni@nvidia.com>
Fri, 15 Nov 2013 09:40:39 +0000 (10:40 +0100)
committerJean Delvare <khali@endymion.delvare>
Fri, 15 Nov 2013 09:40:39 +0000 (10:40 +0100)
commit3e0f964f2ad38d2d4c2616fb8f12016cf6ea1758
treef0f5d78cf5e7f740783831585e69881646895401
parent1daaceb26d5e6cc08eedf03f64ab220f62243c22
hwmon: (lm90) Add power control

The device lm90 can be controlled by the vcc rail.
Adding the regulator support to power on/off the vcc rail.
Enable the "vcc" regulator before accessing the device.

[JD: Rename variables to avoid confusion with registers.]

Signed-off-by: Wei Ni <wni@nvidia.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/lm90.c