Thread (6 messages) read the whole thread 6 messages, 2 authors, 2021-06-10
STALE1877d LANDED

Landed in mainline as fb8543fb863e on 2021-06-10.

[PATCH 1/3] hwmon: (tps23861) define regmap max register

From: Robert Marko <robert.marko@sartura.hr>
Date: 2021-06-09 22:08:38
Also in: lkml
Subsystem: hardware monitoring, texas instruments tps23861 poe pse driver, the rest · Maintainers: Guenter Roeck, Robert Marko, Luka Perkov, Linus Torvalds

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.

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
---
 drivers/hwmon/tps23861.c | 1 +
 1 file changed, 1 insertion(+)
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)
-- 
2.31.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help