diff options
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2015-01-09 16:03:42 (GMT) |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-01-26 05:23:59 (GMT) |
commit | 72a87a47a81e062fc27b7675db33cf29458bc6d2 (patch) | |
tree | 36b42c9ca7a0f0874992c483b4687a7c57aeab4d /arch/x86 | |
parent | 8a5fc79513afe325fd755026299d0bfdb47e42de (diff) | |
download | linux-72a87a47a81e062fc27b7675db33cf29458bc6d2.tar.xz |
hwmon: (ina2xx) implement update_interval attribute for ina226
This attribute allows to configure the update interval of ina226. Although
the bus and shunt voltage conversion times remain hardcoded to 1.1 ms, we can
now modify said interval by changing the averaging rate.
While we're at it - add an additional variable to ina2xx_data, which holds
the current configuration settings - this way we'll be able to restore the
configuration in case of an unexpected chip reset.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions