From: Rafael J. Wysocki Date: Sat, 15 Feb 2014 23:09:34 +0000 (+0100) Subject: ACPI / dock: Pass ACPI device pointer to acpi_device_is_battery() X-Git-Tag: v3.15-rc1~151^2~13^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b43109fa466e6e29091b3e62e6a6c8a0bd099beb;p=pandora-kernel.git 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 --- Reading git-diff-tree failed