From: Bartosz Golaszewski Date: Mon, 5 Jan 2015 14:20:54 +0000 (+0100) Subject: hwmon: (ina2xx) don't accept shunt values greater than the calibration factor X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~170^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e794704000cf7954039b8daab9dfae2a74142f07;p=pandora-kernel.git hwmon: (ina2xx) don't accept shunt values greater than the calibration factor Shunt resistance values greater than the chip's calibration factor make no sense since the actual value written to the register equals: / Bail-out from ina2xx_probe() if the configured value is greater than the calibration factor. Signed-off-by: Bartosz Golaszewski Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed