diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2007-04-24 10:48:12 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-04-25 02:00:27 -0400 |
commit | 54ae15014c306b3d7ad32c996fea9a5ac8560b60 (patch) | |
tree | be9760b8447cf37a33395a8a9be688ccc4ed2171 /drivers/misc/thinkpad_acpi.h | |
parent | 99fba3f8177956170f3d86f83c2cf2f70747105f (diff) |
ACPI: thinkpad-acpi: register with the device model
Register thinkpad-acpi platform driver and platform device for the device
model. Also register the platform device with the hwmon class.
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/misc/thinkpad_acpi.h')
-rw-r--r-- | drivers/misc/thinkpad_acpi.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/misc/thinkpad_acpi.h b/drivers/misc/thinkpad_acpi.h index 6432b28339af..fea580999e94 100644 --- a/drivers/misc/thinkpad_acpi.h +++ b/drivers/misc/thinkpad_acpi.h | |||
@@ -34,6 +34,8 @@ | |||
34 | #include <linux/proc_fs.h> | 34 | #include <linux/proc_fs.h> |
35 | #include <linux/backlight.h> | 35 | #include <linux/backlight.h> |
36 | #include <linux/fb.h> | 36 | #include <linux/fb.h> |
37 | #include <linux/platform_device.h> | ||
38 | #include <linux/hwmon.h> | ||
37 | #include <asm/uaccess.h> | 39 | #include <asm/uaccess.h> |
38 | 40 | ||
39 | #include <linux/dmi.h> | 41 | #include <linux/dmi.h> |
@@ -56,6 +58,7 @@ | |||
56 | 58 | ||
57 | #define IBM_PROC_DIR "ibm" | 59 | #define IBM_PROC_DIR "ibm" |
58 | #define IBM_ACPI_EVENT_PREFIX "ibm" | 60 | #define IBM_ACPI_EVENT_PREFIX "ibm" |
61 | #define IBM_DRVR_NAME IBM_FILE | ||
59 | 62 | ||
60 | #define IBM_LOG IBM_FILE ": " | 63 | #define IBM_LOG IBM_FILE ": " |
61 | #define IBM_ERR KERN_ERR IBM_LOG | 64 | #define IBM_ERR KERN_ERR IBM_LOG |
@@ -130,6 +133,11 @@ static int dispatch_procfs_write(struct file *file, | |||
130 | unsigned long count, void *data); | 133 | unsigned long count, void *data); |
131 | static char *next_cmd(char **cmds); | 134 | static char *next_cmd(char **cmds); |
132 | 135 | ||
136 | /* Device model */ | ||
137 | static struct platform_device *tpacpi_pdev; | ||
138 | static struct class_device *tpacpi_hwmon; | ||
139 | static struct platform_driver tpacpi_pdriver; | ||
140 | |||
133 | /* Module */ | 141 | /* Module */ |
134 | static int experimental; | 142 | static int experimental; |
135 | static u32 dbg_level; | 143 | static u32 dbg_level; |