]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commita0de56c81fcf9f1a691e22e519b0dff21c48c645
tree4861c30006a03eef3686baba462bc0a557b8a910
parentcc904f9cf26dc455cffbdf6e7eb86717e047d8ff
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