Skip to content

Commit

Permalink
hwmon: (tps23861) define regmap max register
Browse files Browse the repository at this point in the history
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 <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>
  • Loading branch information
Robert Marko authored and Guenter Roeck committed Jun 10, 2021
1 parent 78d1355 commit fb8543f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/hwmon/tps23861.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fb8543f

Please sign in to comment.