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>
Wed, 5 Dec 2012 18:55:55 +0000 (10:55 -0800)
commit2fa5222efeb4a76597ceace21c0435d49a34715e
tree67381036996eba50dab2ff07cceeb580876cfa33
parentd9b24e373d160ffd56633cc9a4b2e4013c2682d1
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