summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorRobert Marko <robert.marko@sartura.hr>2021-06-10 01:07:26 +0300
committerGuenter Roeck <linux@roeck-us.net>2021-06-10 18:36:19 +0300
commitfb8543fb863e89baa433b4d716d73395caa1b7f4 (patch)
tree3329c7cc5b5f37e02323240d4d574230d0d8455d /drivers/hwmon
parent78d13552346289bad4a9bf8eabb5eec5e5a321a5 (diff)
downloadlinux-fb8543fb863e89baa433b4d716d73395caa1b7f4.tar.xz
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: fff7b8ab2255 ("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>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/tps23861.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/tps23861.c b/drivers/hwmon/tps23861.c
index c2484f15298b..fd0be8883829 100644
--- a/drivers/hwmon/tps23861.c
+++ b/drivers/hwmon/tps23861.c
@@ -117,6 +117,7 @@ struct tps23861_data {
static struct regmap_config tps23861_regmap_config = {
.reg_bits = 8,
.val_bits = 8,
+ .max_register = 0x6f,
};
static int tps23861_read_temp(struct tps23861_data *data, long *val)