diff options
| author | 2026-10-14 19:34:02 +0200 | |
|---|---|---|
| committer | 2026-11-02 07:00:04 -0800 | |
| commit | 36b07ddfe20b0fe06a8bc32c5e09974876fb5e42 (patch) | |
| tree | 3ada69faca530e82441c2cb9abb3f43da173095e /scripts/Makefile.thinlto | |
| parent | hwmon: chipcap2: fix off-by-one in command mode retry loop (diff) | |
hwmon: chipcap2: fix be16 handling
The driver currently only works correctly on little-endian
architectures when writing 16-bit register values.
Use i2c_smbus_write_word_swapped() for writes and get_unaligned_be16()
for reads to correctly handle the ChipCap 2's big-endian data format
on all architectures.
Fixes: 3af350929e75 ("hwmon: Add support for Amphenol ChipCap 2")
Cc: stable@vger.kernel.org
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://patch.msgid.link/20261014-chipcap2_locks-v3-3-27ebfc2c5b9e@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
