diff options
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acpi_drivers.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index e5f38e5ce86f..4f5042a0ef80 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h | |||
@@ -115,12 +115,17 @@ int acpi_processor_set_thermal_limit(acpi_handle handle, int type); | |||
115 | /*-------------------------------------------------------------------------- | 115 | /*-------------------------------------------------------------------------- |
116 | Dock Station | 116 | Dock Station |
117 | -------------------------------------------------------------------------- */ | 117 | -------------------------------------------------------------------------- */ |
118 | struct acpi_dock_ops { | ||
119 | acpi_notify_handler handler; | ||
120 | acpi_notify_handler uevent; | ||
121 | }; | ||
122 | |||
118 | #if defined(CONFIG_ACPI_DOCK) || defined(CONFIG_ACPI_DOCK_MODULE) | 123 | #if defined(CONFIG_ACPI_DOCK) || defined(CONFIG_ACPI_DOCK_MODULE) |
119 | extern int is_dock_device(acpi_handle handle); | 124 | extern int is_dock_device(acpi_handle handle); |
120 | extern int register_dock_notifier(struct notifier_block *nb); | 125 | extern int register_dock_notifier(struct notifier_block *nb); |
121 | extern void unregister_dock_notifier(struct notifier_block *nb); | 126 | extern void unregister_dock_notifier(struct notifier_block *nb); |
122 | extern int register_hotplug_dock_device(acpi_handle handle, | 127 | extern int register_hotplug_dock_device(acpi_handle handle, |
123 | acpi_notify_handler handler, | 128 | struct acpi_dock_ops *ops, |
124 | void *context); | 129 | void *context); |
125 | extern void unregister_hotplug_dock_device(acpi_handle handle); | 130 | extern void unregister_hotplug_dock_device(acpi_handle handle); |
126 | #else | 131 | #else |
@@ -136,7 +141,7 @@ static inline void unregister_dock_notifier(struct notifier_block *nb) | |||
136 | { | 141 | { |
137 | } | 142 | } |
138 | static inline int register_hotplug_dock_device(acpi_handle handle, | 143 | static inline int register_hotplug_dock_device(acpi_handle handle, |
139 | acpi_notify_handler handler, | 144 | struct acpi_dock_ops *ops, |
140 | void *context) | 145 | void *context) |
141 | { | 146 | { |
142 | return -ENODEV; | 147 | return -ENODEV; |