diff options
Diffstat (limited to 'include/acpi/acpi_drivers.h')
-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 efbaa271ee11..a35c9597d5b1 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h | |||
@@ -116,12 +116,17 @@ int acpi_processor_set_thermal_limit(acpi_handle handle, int type); | |||
116 | /*-------------------------------------------------------------------------- | 116 | /*-------------------------------------------------------------------------- |
117 | Dock Station | 117 | Dock Station |
118 | -------------------------------------------------------------------------- */ | 118 | -------------------------------------------------------------------------- */ |
119 | struct acpi_dock_ops { | ||
120 | acpi_notify_handler handler; | ||
121 | acpi_notify_handler uevent; | ||
122 | }; | ||
123 | |||
119 | #if defined(CONFIG_ACPI_DOCK) || defined(CONFIG_ACPI_DOCK_MODULE) | 124 | #if defined(CONFIG_ACPI_DOCK) || defined(CONFIG_ACPI_DOCK_MODULE) |
120 | extern int is_dock_device(acpi_handle handle); | 125 | extern int is_dock_device(acpi_handle handle); |
121 | extern int register_dock_notifier(struct notifier_block *nb); | 126 | extern int register_dock_notifier(struct notifier_block *nb); |
122 | extern void unregister_dock_notifier(struct notifier_block *nb); | 127 | extern void unregister_dock_notifier(struct notifier_block *nb); |
123 | extern int register_hotplug_dock_device(acpi_handle handle, | 128 | extern int register_hotplug_dock_device(acpi_handle handle, |
124 | acpi_notify_handler handler, | 129 | struct acpi_dock_ops *ops, |
125 | void *context); | 130 | void *context); |
126 | extern void unregister_hotplug_dock_device(acpi_handle handle); | 131 | extern void unregister_hotplug_dock_device(acpi_handle handle); |
127 | #else | 132 | #else |
@@ -137,7 +142,7 @@ static inline void unregister_dock_notifier(struct notifier_block *nb) | |||
137 | { | 142 | { |
138 | } | 143 | } |
139 | static inline int register_hotplug_dock_device(acpi_handle handle, | 144 | static inline int register_hotplug_dock_device(acpi_handle handle, |
140 | acpi_notify_handler handler, | 145 | struct acpi_dock_ops *ops, |
141 | void *context) | 146 | void *context) |
142 | { | 147 | { |
143 | return -ENODEV; | 148 | return -ENODEV; |