hwmon: (applesmc) Dynamic creation of temperature files
authorHenrik Rydberg <rydberg@euromail.se>
Wed, 10 Nov 2010 10:58:04 +0000 (10:58 +0000)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Sat, 8 Jan 2011 18:55:39 +0000 (10:55 -0800)
commit9792dadfce22ae1518c88577ac743a3077a85084
tree5dbfb4edaeb30221507abd226cbd6924ec8d86c1
parent5874583d5662de5550b0ed1c54a9dea70bcdcba4
hwmon: (applesmc) Dynamic creation of temperature files

The current driver creates temperature files based on a list
of temperature keys given per device. Apart from slow adaption
to new machine models, the number of sensors also depends on
the number of processors. This patch looks up the temperature
keys dynamically, thereby supporting all models.

Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/applesmc.c