ACPI: thinkpad-acpi: use a separate platform device for hwmon and name it (v2)
commit84aa036d04792cf890904eb8288fd413e0cf6e52
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 25 Sep 2007 14:42:29 +0000 (25 11:42 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 26 Feb 2008 02:34:03 +0000 (25 23:34 -0300)
tree8d72c2de2e86f948ca99aa09e4b841bb27940e2b
parent9ac0ba07deb61f23a329dae96ef9c4f34f48e404
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