From: Rafael J. Wysocki Date: Thu, 28 Nov 2013 22:58:28 +0000 (+0100) Subject: ACPI / bind: Redefine acpi_preset_companion() X-Git-Tag: v3.14-rc1~107^2~11^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c5ad36d987a1b06f6b0b9dc7bc61a45d277455d;p=pandora-kernel.git ACPI / bind: Redefine acpi_preset_companion() Modify acpi_preset_companion() to take a struct acpi_device pointer instead of an ACPI handle as its second argument and redefine it as a static inline wrapper around ACPI_COMPANION_SET() passing the return value of acpi_find_child_device() directly as the second argument to it. Update its users to pass struct acpi_device pointers instead of ACPI handles to it. This allows some unnecessary acpi_bus_get_device() calls to be avoided. Signed-off-by: Rafael J. Wysocki Reviewed-by: Aaron Lu Tested-by: Aaron Lu # for ATA binding --- Reading git-diff-tree failed