ACPI / dock: Pass ACPI device pointer to acpi_device_is_battery()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 15 Feb 2014 23:09:34 +0000 (00:09 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 16 Feb 2014 00:51:15 +0000 (01:51 +0100)
commitb43109fa466e6e29091b3e62e6a6c8a0bd099beb
tree539a7f34c0d8c37fe4c400a7dba697b0d98f33a8
parent1e2380cd144f6a9619f72f80ad9a93268f63b8dc
ACPI / dock: Pass ACPI device pointer to acpi_device_is_battery()

Since we already know what the device's PNP IDs are when
acpi_device_is_battery() is called, it is not necessary to run
acpi_get_object_info() for the device in that function.  Instead, if
acpi_device_is_battery() is passed a pointer to a struct acpi_device
object, it can use the list of PNP IDs from that object, so make that
happen and modify the function's header accordingly

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/dock.c
drivers/acpi/internal.h
drivers/acpi/scan.c