Skip to content

Commit e13d112

Browse files
robimarkogroeck
authored andcommitted
hwmon: (tps23861) correct shunt LSB values
Current shunt LSB values got reversed during in the original driver commit. So, correct the current shunt LSB values according to the datasheet. This caused reading slightly skewed current values. 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 b325d35 commit e13d112

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hwmon/tps23861.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@
105105
#define TEMPERATURE_LSB 652 /* 0.652 degrees Celsius */
106106
#define VOLTAGE_LSB 3662 /* 3.662 mV */
107107
#define SHUNT_RESISTOR_DEFAULT 255000 /* 255 mOhm */
108-
#define CURRENT_LSB_255 62260 /* 62.260 uA */
109-
#define CURRENT_LSB_250 61039 /* 61.039 uA */
108+
#define CURRENT_LSB_250 62260 /* 62.260 uA */
109+
#define CURRENT_LSB_255 61039 /* 61.039 uA */
110110
#define RESISTANCE_LSB 110966 /* 11.0966 Ohm*/
111111
#define RESISTANCE_LSB_LOW 157216 /* 15.7216 Ohm*/
112112

0 commit comments

Comments
 (0)