summaryrefslogtreecommitdiff
path: root/tools/build
diff options
context:
space:
mode:
authorRobert Marko <robert.marko@sartura.hr>2021-06-10 01:07:27 +0300
committerGuenter Roeck <linux@roeck-us.net>2021-06-10 18:38:52 +0300
commitb325d3526e14942d42c392c2ac9fbea59c22894c (patch)
tree2e7cac107413afa0181ad44f83df9845b028bb98 /tools/build
parentfb8543fb863e89baa433b4d716d73395caa1b7f4 (diff)
downloadlinux-b325d3526e14942d42c392c2ac9fbea59c22894c.tar.xz
hwmon: (tps23861) set current shunt value
TPS23861 has a configuration bit for setting of the current shunt value used on the board. Its bit 0 of the General Mask 1 register. According to the datasheet bit values are: 0 for 255 mOhm (Default) 1 for 250 mOhm So, configure the bit before registering the hwmon device according to the value passed in the DTS or default one if none is passed. This caused potentially reading slightly skewed values due to max current value being 1.02A when 250mOhm shunt is used instead of 1.0A when 255mOhm is used. Fixes: fff7b8ab2255 ("hwmon: add Texas Instruments TPS23861 driver") Signed-off-by: Robert Marko <robert.marko@sartura.hr> Link: https://lore.kernel.org/r/20210609220728.499879-2-robert.marko@sartura.hr Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/build')
0 files changed, 0 insertions, 0 deletions