diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2013-01-26 19:35:05 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-01-26 19:35:05 -0500 |
commit | fb455792d91469fe556b68f1baa9ff5493432be8 (patch) | |
tree | 12abb06786d7e09a3d43fc3d852b9848f3805060 /include/acpi | |
parent | 14b5cb37cc6172a54ce920c61784f44422ae306d (diff) | |
parent | a2766602ac6885f9514abd97821984cd152cdad3 (diff) |
Merge branch 'pci/acpi-scan2' into next
* pci/acpi-scan2:
ACPI / scan: Drop acpi_bus_add() and use acpi_bus_scan() instead
ACPI: update ej_event interface to take acpi_device
ACPI / scan: Add second pass to acpi_bus_trim()
ACPI / scan: Change the implementation of acpi_bus_trim()
ACPI / scan: Drop the second argument of acpi_bus_trim()
ACPI / scan: Drop the second argument of acpi_device_unregister()
ACPI: Remove the ops field from struct acpi_device
ACPI: remove unused acpi_op_bind and acpi_op_unbind
ACPI / scan: Fix check of device_attach() return value.
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acpi_bus.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 796ccc3247df..526d66384c09 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -91,8 +91,6 @@ struct acpi_device; | |||
91 | typedef int (*acpi_op_add) (struct acpi_device * device); | 91 | typedef int (*acpi_op_add) (struct acpi_device * device); |
92 | typedef int (*acpi_op_remove) (struct acpi_device * device, int type); | 92 | typedef int (*acpi_op_remove) (struct acpi_device * device, int type); |
93 | typedef int (*acpi_op_start) (struct acpi_device * device); | 93 | typedef int (*acpi_op_start) (struct acpi_device * device); |
94 | typedef int (*acpi_op_bind) (struct acpi_device * device); | ||
95 | typedef int (*acpi_op_unbind) (struct acpi_device * device); | ||
96 | typedef void (*acpi_op_notify) (struct acpi_device * device, u32 event); | 94 | typedef void (*acpi_op_notify) (struct acpi_device * device, u32 event); |
97 | 95 | ||
98 | struct acpi_device_ops { | 96 | struct acpi_device_ops { |
@@ -273,7 +271,6 @@ struct acpi_device { | |||
273 | struct acpi_device_wakeup wakeup; | 271 | struct acpi_device_wakeup wakeup; |
274 | struct acpi_device_perf performance; | 272 | struct acpi_device_perf performance; |
275 | struct acpi_device_dir dir; | 273 | struct acpi_device_dir dir; |
276 | struct acpi_device_ops ops; | ||
277 | struct acpi_driver *driver; | 274 | struct acpi_driver *driver; |
278 | void *driver_data; | 275 | void *driver_data; |
279 | struct device dev; | 276 | struct device dev; |
@@ -309,7 +306,7 @@ struct acpi_bus_event { | |||
309 | }; | 306 | }; |
310 | 307 | ||
311 | struct acpi_eject_event { | 308 | struct acpi_eject_event { |
312 | acpi_handle handle; | 309 | struct acpi_device *device; |
313 | u32 event; | 310 | u32 event; |
314 | }; | 311 | }; |
315 | 312 | ||
@@ -349,9 +346,9 @@ static inline int acpi_bus_generate_proc_event(struct acpi_device *device, u8 ty | |||
349 | #endif | 346 | #endif |
350 | int acpi_bus_register_driver(struct acpi_driver *driver); | 347 | int acpi_bus_register_driver(struct acpi_driver *driver); |
351 | void acpi_bus_unregister_driver(struct acpi_driver *driver); | 348 | void acpi_bus_unregister_driver(struct acpi_driver *driver); |
352 | int acpi_bus_add(acpi_handle handle); | 349 | int acpi_bus_scan(acpi_handle handle); |
353 | void acpi_bus_hot_remove_device(void *context); | 350 | void acpi_bus_hot_remove_device(void *context); |
354 | int acpi_bus_trim(struct acpi_device *start, int rmdevice); | 351 | int acpi_bus_trim(struct acpi_device *start); |
355 | acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd); | 352 | acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd); |
356 | int acpi_match_device_ids(struct acpi_device *device, | 353 | int acpi_match_device_ids(struct acpi_device *device, |
357 | const struct acpi_device_id *ids); | 354 | const struct acpi_device_id *ids); |