From: Bartosz Golaszewski Date: Fri, 9 Jan 2015 16:03:42 +0000 (+0100) Subject: hwmon: (ina2xx) implement update_interval attribute for ina226 X-Git-Tag: fixes-v4.0-rc1~186^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72a87a47a81e062fc27b7675db33cf29458bc6d2;p=pandora-kernel.git 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 Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed