diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-06-08 10:48:26 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-06-11 18:54:54 -0400 |
commit | e4e9a735991c80fb0fc1bd4a13a93681c3c17ce0 (patch) | |
tree | dbe98206d9fe79c744e354ab2f4f6dd2473406ed /drivers/acpi/acpica/achware.h | |
parent | a997ab332832519c2e292db13f509e4360495a5a (diff) | |
download | linux-e4e9a735991c80fb0fc1bd4a13a93681c3c17ce0.tar.bz2 |
ACPI / ACPICA: Use helper function for computing GPE masks
In quite a few places ACPICA needs to compute a GPE enable mask with
only one bit, corresponding to a given GPE, set. Currently, that
computation is always open coded which leads to unnecessary code
duplication. Fix this by introducing a helper function for computing
one-bit GPE enable masks and using it where appropriate.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/achware.h')
-rw-r--r-- | drivers/acpi/acpica/achware.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/achware.h b/drivers/acpi/acpica/achware.h index 5900f135dc6d..c46277d179f0 100644 --- a/drivers/acpi/acpica/achware.h +++ b/drivers/acpi/acpica/achware.h @@ -90,6 +90,9 @@ acpi_status acpi_hw_write_port(acpi_io_address address, u32 value, u32 width); /* * hwgpe - GPE support */ +u32 acpi_hw_gpe_register_bit(struct acpi_gpe_event_info *gpe_event_info, + struct acpi_gpe_register_info *gpe_register_info); + acpi_status acpi_hw_low_disable_gpe(struct acpi_gpe_event_info *gpe_event_info); acpi_status |