]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (tps23861) correct shunt LSB values
authorRobert Marko <robert.marko@sartura.hr>
Wed, 9 Jun 2021 22:07:28 +0000 (00:07 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 10 Jun 2021 15:40:09 +0000 (08:40 -0700)
commitf108ca225a21601c9f4987715672f37ba5c7d2ce
tree2cad5f7706b0144a6a110c4709792c8249d9c0e6
parent38a2ea7e0ec51cba0e6f8d3d54af7e0281fe8edd
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: 22ae5f4db447 ("hwmon: add Texas Instruments TPS23861 driver")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Link: https://lore.kernel.org/r/20210609220728.499879-3-robert.marko@sartura.hr
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tps23861.c