diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-16 00:09:34 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-16 01:51:15 +0100 |
commit | b43109fa466e6e29091b3e62e6a6c8a0bd099beb (patch) | |
tree | 539a7f34c0d8c37fe4c400a7dba697b0d98f33a8 /CREDITS | |
parent | ACPI / dock: Dispatch dock notifications from the global notify handler (diff) | |
download | linux-b43109fa466e6e29091b3e62e6a6c8a0bd099beb.tar.xz linux-b43109fa466e6e29091b3e62e6a6c8a0bd099beb.zip |
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>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions