hwmon: (applesmc) Add temperature sensor labels to sysfs interface
authorAlex Murray <murray.alex@gmail.com>
Thu, 27 May 2010 17:58:54 +0000 (19:58 +0200)
committerJean Delvare <khali@linux-fr.org>
Thu, 27 May 2010 17:58:54 +0000 (19:58 +0200)
commitfa5575cff92eb43f467b9b00468d70d073e8b3d2
treef0ef51ed03fd78f45c2d1ea8e4bd5932a76b89b4
parent405eaa1c1d045cdd872802fc515f638573984880
hwmon: (applesmc) Add temperature sensor labels to sysfs interface

The Apple SMC uses a systematic labeling scheme for the hardware
temperature sensors. This scheme is currently hidden from
userland. Since the sensor set, and consequently the numbering,
differs between models, an extensive database of configurations is
required for an application such as fan control. This patch adds the
SMC labels to the hwmon sysfs interface, allowing applications to use
the sensors more intelligibly.

[rydberg@euromail.se: fixed error handling]
Signed-off-by: Alex Murray <murray.alex@gmail.com>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/applesmc.c