aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/internal.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-15 18:09:34 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-15 19:51:15 -0500
commitb43109fa466e6e29091b3e62e6a6c8a0bd099beb (patch)
tree539a7f34c0d8c37fe4c400a7dba697b0d98f33a8 /drivers/acpi/internal.h
parent1e2380cd144f6a9619f72f80ad9a93268f63b8dc (diff)
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 'drivers/acpi/internal.h')
-rw-r--r--drivers/acpi/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h
index 00e3220febda..4d081fc1aa24 100644
--- a/drivers/acpi/internal.h
+++ b/drivers/acpi/internal.h
@@ -97,7 +97,7 @@ void acpi_free_pnp_ids(struct acpi_device_pnp *pnp);
97int acpi_bind_one(struct device *dev, struct acpi_device *adev); 97int acpi_bind_one(struct device *dev, struct acpi_device *adev);
98int acpi_unbind_one(struct device *dev); 98int acpi_unbind_one(struct device *dev);
99bool acpi_device_is_present(struct acpi_device *adev); 99bool acpi_device_is_present(struct acpi_device *adev);
100bool acpi_device_is_battery(acpi_handle handle); 100bool acpi_device_is_battery(struct acpi_device *adev);
101 101
102/* -------------------------------------------------------------------------- 102/* --------------------------------------------------------------------------
103 Power Resource 103 Power Resource