]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (tps23861) define regmap max register
authorRobert Marko <robert.marko@sartura.hr>
Wed, 9 Jun 2021 22:07:26 +0000 (00:07 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 10 Jun 2021 15:36:19 +0000 (08:36 -0700)
commit71ff5dbe9a8fd974bea6170b401d2ef4fac32afd
tree3329c7cc5b5f37e02323240d4d574230d0d8455d
parent39d5d9e5e62cfe3a549b13a154667a3b5ca63e64
hwmon: (tps23861) define regmap max register

Define the max register address the device supports.
This allows reading the whole register space via
regmap debugfs, without it only register 0x0 is visible.

This was forgotten in the original driver commit.

Fixes: 22ae5f4db447 ("hwmon: add Texas Instruments TPS23861 driver")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Link: https://lore.kernel.org/r/20210609220728.499879-1-robert.marko@sartura.hr
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tps23861.c