From: Bartosz Golaszewski Date: Mon, 5 Jan 2015 14:20:52 +0000 (+0100) Subject: hwmon: (ina2xx) reinitialize the chip in case it's been reset X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~170^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=509416a8e741d11d65c027f510b79573f69f6de8;p=pandora-kernel.git hwmon: (ina2xx) reinitialize the chip in case it's been reset Chips from the ina family don't like to be uninitialized. In case the power is cut-off and restored again the calibration register will be reset to 0 and both the power and current registers will remain at 0. Check the calibration register in ina2xx_update_device() and reinitialize the chip if needed. Signed-off-by: Bartosz Golaszewski Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed