ACPI: thinkpad-acpi: use a separate platform device for hwmon and name it (v2)
commitca086f56dbfe32196e5bad0320b5ecd75ecd972b
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 25 Sep 2007 11:42:29 +0000 (25 08:42 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 25 Sep 2007 08:51:17 +0000 (25 05:51 -0300)
tree1dda15eac830d8d7e7c46eb735e81af49bc68f53
parent57af38b832118ed826edcca4af994fc1934af2e1
ACPI: thinkpad-acpi: use a separate platform device for hwmon and name it (v2)

Use a separate platform device and driver ("thinkpad_hwmon") to attach
hwmon attributes and class, and add a name attribute of "thinkpad" to
it, which defines the hwmon device name for libsensors4.

This makes thinkpad-acpi compatible with libsensors4 from lm-sensors, and
the platform driver and device split will make it much easier to separate
hwmon functionality into its own module later on.

Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Jean Delvare <khali@linux-fr.org>
Documentation/thinkpad-acpi.txt
drivers/misc/thinkpad_acpi.c
drivers/misc/thinkpad_acpi.h