]> 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>
Mon, 5 Nov 2012 16:07:19 +0000 (08:07 -0800)
commit6d531ba7394a612847338b8945bab251e136590a
tree3c52bc968fa2c6075d721aa827ff8ca35272c70c
parent83947bba86412635ed711786a8ade5847322f0c1
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