]> Pileus Git - ~andy/linux/commit
ACPI / bind: Rework struct acpi_bus_type
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 29 Nov 2013 15:27:34 +0000 (16:27 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 7 Dec 2013 00:05:50 +0000 (01:05 +0100)
commite3f02c5228c4b600abf6ca243301176f25553bd5
treea3b5372f137fb8396ffe036e4c0c3cabea06b838
parent9c5ad36d987a1b06f6b0b9dc7bc61a45d277455d
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
drivers/acpi/glue.c
drivers/pci/pci-acpi.c
drivers/pnp/pnpacpi/core.c
drivers/usb/core/usb-acpi.c
include/acpi/acpi_bus.h