]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
hwmon: ina3221: add simultaneous vbus/current reading
authorTimo Alho <talho@nvidia.com>
Thu, 2 Jan 2014 09:04:45 +0000 (11:04 +0200)
committerJuha Tukkinen <jtukkinen@nvidia.com>
Wed, 8 Jan 2014 17:51:06 +0000 (09:51 -0800)
commita00d88265b44c075ac6ae746a45b64bd082f2ac5
tree375338495b26914b99a72f6f311fd222bc9c27f6
parentd93816bef882857b2f41b379ec58b7cb7e6bc0dc
hwmon: ina3221: add simultaneous vbus/current reading

Add intefrace ui_input_X to read simultaneous voltage and current
values (from same conversion round).

Also, make the running_mode sysfs entry writable to allow to force the
INA into continuous mode.

Bug 1400509
Bug 1414772

Change-Id: Ic0386bade95845398caa85946f4061f072796e1a
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/351299
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
drivers/hwmon/ina3221.c