diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-29 16:27:34 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-12-07 01:05:50 +0100 |
commit | e3f02c5228c4b600abf6ca243301176f25553bd5 (patch) | |
tree | a3b5372f137fb8396ffe036e4c0c3cabea06b838 /include/acpi/acpi_bus.h | |
parent | 9c5ad36d987a1b06f6b0b9dc7bc61a45d277455d (diff) | |
download | linux-stable-e3f02c5228c4b600abf6ca243301176f25553bd5.tar.gz linux-stable-e3f02c5228c4b600abf6ca243301176f25553bd5.tar.bz2 linux-stable-e3f02c5228c4b600abf6ca243301176f25553bd5.zip |
ACPI / bind: Rework struct acpi_bus_type
Replace the .find_device function pointer in struct acpi_bus_type
with a new one, .find_companion, that is supposed to point to a
function returning struct acpi_device pointer (instead of an int)
and takes one argument (instead of two). This way the role of
this callback is more clear and the implementation of it can
be more straightforward.
Update all of the users of struct acpi_bus_type (PCI, PNP/ACPI and
USB) to reflect the structure change.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Lan Tianyu <tianyu.lan@intel.com> # for USB/ACPI
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r-- | include/acpi/acpi_bus.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 918eaab892e1..a50898e67a68 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h @@ -412,7 +412,7 @@ struct acpi_bus_type { struct list_head list; const char *name; bool (*match)(struct device *dev); - int (*find_device) (struct device *, acpi_handle *); + struct acpi_device * (*find_companion)(struct device *); void (*setup)(struct device *); void (*cleanup)(struct device *); }; |