]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (coretemp) Use model table instead of if/else to identify CPU models
authorGuenter Roeck <linux@roeck-us.net>
Tue, 9 Oct 2012 19:45:23 +0000 (12:45 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 20 Oct 2012 20:36:19 +0000 (13:36 -0700)
commitdc1d066221f2690afdad0b0db39ad3785b42b9a2
treeb1e2639b6303af804d215afaf88fa2e68e962dfe
parent23fc73db5c053af340f28113c315e4090b832ed8
hwmon: (coretemp) Use model table instead of if/else to identify CPU models

Make the code easier to extend and easier to adjust by using a model table
listing CPU models, stepping/mask, and associated TjMax.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/coretemp.c