]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (asus-ec-sensors) fix looping over banks while reading from EC
authorEugene Shalygin <eugene.shalygin@gmail.com>
Sat, 11 Jul 2026 07:42:07 +0000 (09:42 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 19 Jul 2026 14:15:04 +0000 (07:15 -0700)
commite741d13cc2abfc6fccebe2008057aa52e285223e
treefc4207f1512197955846377220f0b99d8b94178f
parentaf01dab0c39a7aefc47a109201e4134ea6bd3005
hwmon: (asus-ec-sensors) fix looping over banks while reading from EC

Do not assume there are only bank 0 and bank 1 available, just use '!='
for bank comparison.

Fixes: d0ddfd241e57 ("hwmon: (asus-ec-sensors) add driver for ASUS EC")
Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20260711074217.554656-1-eugene.shalygin@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/asus-ec-sensors.c