]> git.baikalelectronics.ru Git - kernel.git/commit
iio: ina2xx-adc: update the CALIB. register when RShunt changes
authorMarc Titinger <mtitinger@baylibre.com>
Mon, 14 Mar 2016 10:20:44 +0000 (11:20 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 21 Mar 2016 19:00:11 +0000 (19:00 +0000)
commitf59366300080b48003e1a4d76140f3c1fa031831
tree9dc766300b38336fee096a87efe402b24d6b67c8
parentcec31b20de104c509b9f6118e4be45dd22c7eca5
iio: ina2xx-adc: update the CALIB. register when RShunt changes

The user (or an init script) may setup RShunt via sysfs after the
driver was initialized, for instance based on the EEPROM contents
of a modular probe. The calibration register must be set accordingly.

Signed-off-by: Marc Titinger <marc.titinger@baylibre.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ina2xx-adc.c