hwmon: ina3221: Support for crit and warn
authorAnshul Jain <anshulj@nvidia.com>
Fri, 15 Nov 2013 02:37:19 +0000 (18:37 -0800)
committerDiwakar Tundlam <dtundlam@nvidia.com>
Fri, 15 Nov 2013 23:33:16 +0000 (15:33 -0800)
commit0f5970ccdea1c5b4ee28dbf9c155389a1839d4c8
tree007daca34d64139c96fcb6444b8e5032d4c338fc
parentea42c0ac7f5d06ac7d97ff28511a179a28bfdc2b
hwmon: ina3221: Support for crit and warn

This change adds support to configure crit and warn limits
in ina3221 device.

sysfs node: crit_cur_limit_<channel> in mA

Bug 1406218

Change-Id: Ifbeaaeb53201f4d086b88dedb746288d19dfbcfd
Signed-off-by: Anshul Jain <anshulj@nvidia.com>
Reviewed-on: http://git-master/r/331454
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
Tested-by: Diwakar Tundlam <dtundlam@nvidia.com>
drivers/hwmon/ina3221.c
include/linux/ina3221.h