git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4fe902
)
hwmon: (ina2xx) don't accept shunt values greater than the calibration factor
author
Bartosz Golaszewski
<bgolaszewski@baylibre.com>
Mon, 5 Jan 2015 14:20:54 +0000
(15:20 +0100)
committer
Guenter Roeck
<linux@roeck-us.net>
Mon, 26 Jan 2015 05:23:59 +0000
(21:23 -0800)
Shunt resistance values greater than the chip's calibration factor make no
sense since the actual value written to the register equals:
<calibration factor> / <shunt>
Bail-out from ina2xx_probe() if the configured value is greater than the
calibration factor.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
No differences found