hwmon: ina3221: Support for turning off ina
authorAnshul Jain <anshulj@nvidia.com>
Thu, 24 Jan 2013 02:05:56 +0000 (18:05 -0800)
committerMandar Padmawar <mpadmawar@nvidia.com>
Mon, 28 Jan 2013 07:56:16 +0000 (23:56 -0800)
commit1b530bd6b64363214580f6717b53888613cf7d4e
tree0d8ab9b7182d130e636c15e2ed0468aee20a4806
parent3c5fddce60e05f863b9eddc5a677782cf8f71dc5
hwmon: ina3221: Support for turning off ina

This is an optimization to turn off INA device based on number of cores
online. Also, this change removes support for turning on/off INA at runtime
using sysfs node. Additionaly, this change creates a new API power2_*,
which return 0 if ina device is turned off.

Bug 1223376
Bug 1207777

Change-Id: I0beedffa10d7e11e280e96c2c58c4dd191b87819
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/193580
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
drivers/hwmon/ina3221.c