hwmon: ina230: add function to measure power
authorDeepak Nibade <dnibade@nvidia.com>
Wed, 7 Nov 2012 12:57:31 +0000 (17:57 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 07:49:01 +0000 (00:49 -0700)
commit94bca7eb2df3dc51acc671fd6de5ab2611fd08f4
tree53b83234f91f49cb52ccdb38a27a4c8785cd004b
parent560f78fd350e7ec8dede911dac6985f35f7dc1db
hwmon: ina230: add function to measure power

-do calculation using calibration_data, power_lsb,
divisor received from respective board files
-remove sysdev include

Bug 1049224

Change-Id: I673e67cb42972aad1a3c5e5ea995072d40839d05
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/162025
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/hwmon/ina230.c
include/linux/platform_data/ina230.h