summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/hwmon
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2022-09-05 17:28:04 +0300
committerGuenter Roeck <linux@roeck-us.net>2022-09-06 01:15:13 +0300
commit1f05f65bddd6958d25b133f886da49c1d4bff3fa (patch)
treeb11b58cb95128597ded6b07c902366d400d89f96 /Documentation/devicetree/bindings/hwmon
parent7e18e42e4b280c85b76967a9106a13ca61c16179 (diff)
downloadlinux-1f05f65bddd6958d25b133f886da49c1d4bff3fa.tar.xz
hwmon: (tps23861) fix byte order in resistance register
The tps23861 registers are little-endian, and regmap_read_bulk() does not do byte order conversion. On BE machines, the bytes were swapped, and the interpretation of the resistance value was incorrect. To make it work on both big and little-endian machines, use le16_to_cpu() to convert the resitance register to host byte order. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Fixes: fff7b8ab22554 ("hwmon: add Texas Instruments TPS23861 driver") Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20220905142806.110598-1-mr.nuke.me@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/devicetree/bindings/hwmon')
0 files changed, 0 insertions, 0 deletions