]> 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>
Sun, 14 Oct 2012 22:21:42 +0000 (15:21 -0700)
commit67b02ecd12f744349b5a7460cdd6790e1e5cae78
treeb3a516a4cb7f8fd39df5e9d356fc8e7d473f4c7a
parent4f255bbbb8c686dcdf7b80c15fa0304568f7e752
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