]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (asus-ec-sensors) sort sensor definition arrays
authorEugene Shalygin <eugene.shalygin@gmail.com>
Tue, 8 Apr 2025 20:44:57 +0000 (22:44 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 23 Apr 2025 14:18:27 +0000 (07:18 -0700)
commit0bf08f9e358d33a8972cdb3d698079f5d768d7ed
treee028d68b59ba632169403216c597c2ee48fcbd44
parentab2f6bffe7311327d5f6432e413c704f395b93c3
hwmon: (asus-ec-sensors) sort sensor definition arrays

The arrays have to be sorted by the sensor register bank and index
because this is what the sensor reading function expects. So sort them
and leave a comment for future contributors.

Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20250408204505.11412-1-eugene.shalygin@gmail.com
[groeck: Fixed alignment of new  multi-line comment]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/asus-ec-sensors.c