]> 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>
Tue, 30 Oct 2012 00:48:35 +0000 (17:48 -0700)
commite4aad15f99045b6e8d814063613a3a4bd831e45f
treec0a2cbaf01ab9ff819c706105b4bfaa195e6f1ee
parent85bf4c9c9dc035e45d8877eb3e9253fca37e19d8
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