Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117280
b: refs/heads/master
c: 0823797
h: refs/heads/master
v: v3
  • Loading branch information
Lin Ming authored and Len Brown committed Oct 22, 2008
1 parent 68e3a8e commit 4121be8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 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: 36eec5e29cf31011a7fbe121badfed7efb2a4ebb
refs/heads/master: 08237974af22a97da59869979ef1a515524d5cc3
10 changes: 5 additions & 5 deletions trunk/drivers/acpi/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ u32 method_id, const struct acpi_buffer *in, struct acpi_buffer *out)
char method[4] = "WM";

if (!find_guid(guid_string, &wblock))
return AE_BAD_ADDRESS;
return AE_ERROR;

block = &wblock->gblock;
handle = wblock->handle;
Expand Down Expand Up @@ -304,7 +304,7 @@ struct acpi_buffer *out)
return AE_BAD_PARAMETER;

if (!find_guid(guid_string, &wblock))
return AE_BAD_ADDRESS;
return AE_ERROR;

block = &wblock->gblock;
handle = wblock->handle;
Expand All @@ -314,7 +314,7 @@ struct acpi_buffer *out)

/* Check GUID is a data block */
if (block->flags & (ACPI_WMI_EVENT | ACPI_WMI_METHOD))
return AE_BAD_ADDRESS;
return AE_ERROR;

input.count = 1;
input.pointer = wq_params;
Expand Down Expand Up @@ -385,7 +385,7 @@ const struct acpi_buffer *in)
return AE_BAD_DATA;

if (!find_guid(guid_string, &wblock))
return AE_BAD_ADDRESS;
return AE_ERROR;

block = &wblock->gblock;
handle = wblock->handle;
Expand All @@ -395,7 +395,7 @@ const struct acpi_buffer *in)

/* Check GUID is a data block */
if (block->flags & (ACPI_WMI_EVENT | ACPI_WMI_METHOD))
return AE_BAD_ADDRESS;
return AE_ERROR;

input.count = 2;
input.pointer = params;
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/misc/acer-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ struct wmi_interface *iface)
}
break;
default:
return AE_BAD_ADDRESS;
return AE_ERROR;
}
return AE_OK;
}
Expand Down Expand Up @@ -514,7 +514,7 @@ static acpi_status AMW0_set_u32(u32 value, u32 cap, struct wmi_interface *iface)
break;
}
default:
return AE_BAD_ADDRESS;
return AE_ERROR;
}

/* Actually do the set */
Expand Down Expand Up @@ -689,7 +689,7 @@ struct wmi_interface *iface)
return 0;
}
default:
return AE_BAD_ADDRESS;
return AE_ERROR;
}
status = WMI_execute_u32(method_id, 0, &result);

Expand Down Expand Up @@ -735,7 +735,7 @@ static acpi_status WMID_set_u32(u32 value, u32 cap, struct wmi_interface *iface)
}
break;
default:
return AE_BAD_ADDRESS;
return AE_ERROR;
}
return WMI_execute_u32(method_id, (u32)value, NULL);
}
Expand Down Expand Up @@ -785,7 +785,7 @@ static struct wmi_interface wmid_interface = {

static acpi_status get_u32(u32 *value, u32 cap)
{
acpi_status status = AE_BAD_ADDRESS;
acpi_status status = AE_ERROR;

switch (interface->type) {
case ACER_AMW0:
Expand Down

0 comments on commit 4121be8

Please sign in to comment.