summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ina3221.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* hwmon: (ina3221) Fix negative limitsGuenter Roeck2016-06-281-7/+6
| | | | | | | | | | | | | | The result of an integer divide by an unsigned is undefined. This causes unexpected results when writing negative values into the limit registers. Maintain the shunt_resistors variables as signed integer to avoid the problem. Also, for simplicity and ease of use, clamp shunt resistor value on writes instead of rejecting bad values. Cc: Andrew F. Davis <afd@ti.com> Acked-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* hwmon: Add support for INA3221 Triple Current/Voltage MonitorsAndrew F. Davis2016-06-281-0/+446
Add support for the the INA3221 26v capable, Triple channel, Bi-Directional, Zero-Drift, Low-/High-Side, Current/Voltage Monitor with I2C interface. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>