diff options
| author | 2026-10-14 19:34:01 +0200 | |
|---|---|---|
| committer | 2026-11-02 07:00:04 -0800 | |
| commit | 4c0e65a4ed665c416ccb1524c58a646a580e491f (patch) | |
| tree | ea9e19046d5fae760e7b62aaf0e50b24904d50ff /scripts/Makefile.thinlto | |
| parent | hwmon: chipcap2: fix command error diagnostics (diff) | |
hwmon: chipcap2: fix off-by-one in command mode retry loop
i == CC2_CM_RETRIES can never be true inside the loop, since it
only runs while i < CC2_CM_RETRIES. Use CC2_CM_RETRIES - 1 so the
last failed retry breaks out immediately instead of doing a useless
disable + 80 ms power-cycle delay before the loop condition ends it
anyway.
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-2-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
