Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32001
b: refs/heads/master
c: 3b073ec
h: refs/heads/master
i:
  31999: ed5d477
v: v3
  • Loading branch information
Patrick Mochel authored and Len Brown committed Jun 30, 2006
1 parent 6fe0503 commit b19a535
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b863278523f7adbacb9e34133f4b6397cdab9977
refs/heads/master: 3b073ec3667ee63e35b66752a30eeedef1e1e772
12 changes: 6 additions & 6 deletions trunk/drivers/acpi/battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ acpi_battery_get_info(struct acpi_battery *battery,

/* Evalute _BIF */

status = acpi_evaluate_object(battery->handle, "_BIF", NULL, &buffer);
status = acpi_evaluate_object(battery->device->handle, "_BIF", NULL, &buffer);
if (ACPI_FAILURE(status)) {
ACPI_EXCEPTION((AE_INFO, status, "Evaluating _BIF"));
return -ENODEV;
Expand Down Expand Up @@ -199,7 +199,7 @@ acpi_battery_get_status(struct acpi_battery *battery,

/* Evalute _BST */

status = acpi_evaluate_object(battery->handle, "_BST", NULL, &buffer);
status = acpi_evaluate_object(battery->device->handle, "_BST", NULL, &buffer);
if (ACPI_FAILURE(status)) {
ACPI_EXCEPTION((AE_INFO, status, "Evaluating _BST"));
return -ENODEV;
Expand Down Expand Up @@ -256,7 +256,7 @@ acpi_battery_set_alarm(struct acpi_battery *battery, unsigned long alarm)

arg0.integer.value = alarm;

status = acpi_evaluate_object(battery->handle, "_BTP", &arg_list, NULL);
status = acpi_evaluate_object(battery->device->handle, "_BTP", &arg_list, NULL);
if (ACPI_FAILURE(status))
return -ENODEV;

Expand Down Expand Up @@ -304,7 +304,7 @@ static int acpi_battery_check(struct acpi_battery *battery)

/* See if alarms are supported, and if so, set default */

status = acpi_get_handle(battery->handle, "_BTP", &handle);
status = acpi_get_handle(battery->device->handle, "_BTP", &handle);
if (ACPI_SUCCESS(status)) {
battery->flags.alarm = 1;
acpi_battery_set_alarm(battery, battery->trips.warning);
Expand Down Expand Up @@ -707,7 +707,7 @@ static int acpi_battery_add(struct acpi_device *device)
if (result)
goto end;

status = acpi_install_notify_handler(battery->handle,
status = acpi_install_notify_handler(device->handle,
ACPI_DEVICE_NOTIFY,
acpi_battery_notify, battery);
if (ACPI_FAILURE(status)) {
Expand Down Expand Up @@ -739,7 +739,7 @@ static int acpi_battery_remove(struct acpi_device *device, int type)

battery = (struct acpi_battery *)acpi_driver_data(device);

status = acpi_remove_notify_handler(battery->handle,
status = acpi_remove_notify_handler(device->handle,
ACPI_DEVICE_NOTIFY,
acpi_battery_notify);

Expand Down

0 comments on commit b19a535

Please sign in to comment.