]> git.ipfire.org Git - people/ms/linux.git/commit - drivers/hwmon/ntc_thermistor.c
hwmon: (ntc_thermistor) sort thermistor id lists alphabetically
authorPeter Rosin <peda@axentia.se>
Wed, 21 Nov 2018 16:03:39 +0000 (16:03 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 16 Dec 2018 23:13:20 +0000 (15:13 -0800)
commite056fe25d9f021d45c3fb6068d11e56e9579754b
treea346cda896c023c5995d1ef7c0a8f0a75acc28c1
parente8fda2c8646e504a732fbe7507c543279323c3d9
hwmon: (ntc_thermistor) sort thermistor id lists alphabetically

Use an enum to index the array, so that it is possible to add sorted
entries without causing churn.

Signed-off-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ntc_thermistor.c