diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-20 19:10:09 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-20 19:10:09 -0500 |
commit | 3b52b21fa1f44c8956e21dfba645eda959111b5e (patch) | |
tree | 8c6ac7f521467f66dbf55249beb25d0446ac6957 /include/acpi/acpi_drivers.h | |
parent | 96075315c5e7077fc5a3ac54c9b9e97e376e66ed (diff) |
ACPI / dock: Use ACPI device object pointers instead of ACPI handles
Rework the ACPI dock station driver to store ACPI device object
pointers instead of ACPI handles in its internal data structures.
The purpose is moslty to make subsequent simplifications possible,
but also this allows the overall code size to be reduced slightly.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi/acpi_drivers.h')
-rw-r--r-- | include/acpi/acpi_drivers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h index b124fdb26046..d6c98b9cbe38 100644 --- a/include/acpi/acpi_drivers.h +++ b/include/acpi/acpi_drivers.h | |||
@@ -116,7 +116,7 @@ struct acpi_dock_ops { | |||
116 | }; | 116 | }; |
117 | 117 | ||
118 | #ifdef CONFIG_ACPI_DOCK | 118 | #ifdef CONFIG_ACPI_DOCK |
119 | extern int is_dock_device(acpi_handle handle); | 119 | extern int is_dock_device(struct acpi_device *adev); |
120 | extern int register_hotplug_dock_device(acpi_handle handle, | 120 | extern int register_hotplug_dock_device(acpi_handle handle, |
121 | const struct acpi_dock_ops *ops, | 121 | const struct acpi_dock_ops *ops, |
122 | void *context, | 122 | void *context, |
@@ -124,7 +124,7 @@ extern int register_hotplug_dock_device(acpi_handle handle, | |||
124 | void (*release)(void *)); | 124 | void (*release)(void *)); |
125 | extern void unregister_hotplug_dock_device(acpi_handle handle); | 125 | extern void unregister_hotplug_dock_device(acpi_handle handle); |
126 | #else | 126 | #else |
127 | static inline int is_dock_device(acpi_handle handle) | 127 | static inline int is_dock_device(struct acpi_device *adev) |
128 | { | 128 | { |
129 | return 0; | 129 | return 0; |
130 | } | 130 | } |