Skip to content

Commit fb8543f

Browse files
robimarkogroeck
authored andcommitted
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: fff7b8a ("hwmon: add Texas Instruments TPS23861 driver") Signed-off-by: Robert Marko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]>
1 parent 78d1355 commit fb8543f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hwmon/tps23861.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ struct tps23861_data {
117117
static struct regmap_config tps23861_regmap_config = {
118118
.reg_bits = 8,
119119
.val_bits = 8,
120+
.max_register = 0x6f,
120121
};
121122

122123
static int tps23861_read_temp(struct tps23861_data *data, long *val)

0 commit comments

Comments
 (0)