]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ina2xx) convert driver to using regmap
authorMarc Titinger <mtitinger@baylibre.com>
Wed, 28 Oct 2015 11:04:53 +0000 (12:04 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 29 Oct 2015 04:53:00 +0000 (21:53 -0700)
commit028f364ef3a6d0642a892f56925a3a5684dfb57d
tree4861c30006a03eef3686baba462bc0a557b8a910
parent5f7e2e656cdfed92e2a058b213da302325d4e65b
hwmon: (ina2xx) convert driver to using regmap

Any sysfs "show" read access from the client app will result in reading
all registers (8 with ina226). Depending on the host this can limit the
best achievable read rate.

This changeset allows for individual register accesses through regmap.

Tested with BeagleBone Black (Baylibre-ACME) and ina226.

Signed-off-by: Marc Titinger <mtitinger@baylibre.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ina2xx.c