summaryrefslogtreecommitdiffstats
path: root/drivers/pci/quirks.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2015-01-05 15:20:52 +0100
committerGuenter Roeck <linux@roeck-us.net>2015-01-26 06:23:58 +0100
commit509416a8e741d11d65c027f510b79573f69f6de8 (patch)
tree0d74b0fa17306f70b65510c855ce3d0807f6363e /drivers/pci/quirks.c
parenthwmon: (nct7802) Constify struct regmap_config (diff)
downloadlinux-509416a8e741d11d65c027f510b79573f69f6de8.tar.xz
linux-509416a8e741d11d65c027f510b79573f69f6de8.zip
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 <bgolaszewski@baylibre.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/pci/quirks.c')
0 files changed, 0 insertions, 0 deletions