hwmon: ina230: add new sysfs for power measurement
authorDeepak Nibade <dnibade@nvidia.com>
Mon, 15 Jul 2013 09:37:14 +0000 (14:37 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:32:08 +0000 (13:32 -0700)
commite6868ee66edbaa02639ae5135cf96593f10ef611
tree8b6d171351b1e0953fc6cdaa5128b9096beed3cd
parent9ffb484159b5412a7e41bd570cfe0a6e5bddb302
hwmon: ina230: add new sysfs for power measurement

- add new sysfs API "power2_input" for power measurement
- this sysfs makes use of shunt resistor value for power calculation
- it is independent of other constants like calibration and power lsb

Bug 1325760

Change-Id: I756e89b98c9771481b1b7e01e2ae0a8a0903eed6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/249201
(cherry picked from commit 4529558b283ada071fd15c4113d9295c8db1d3fc)
Reviewed-on: http://git-master/r/250066
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
drivers/hwmon/ina230.c