ACPICA: Introduce acpi_hw_gpe_read() and acpi_hw_gpe_write()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 4 Sep 2020 16:27:43 +0000 (18:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 4 Sep 2020 17:34:15 +0000 (19:34 +0200)
commitf06011ad6225b0f5e4246b5635c5570fa8d5fcdf
tree39e4d0fe7a3b7bfb307d20e1786cd7ee0da367fc
parent84b43284af40742abeb2cdd6998a4084866ba015
ACPICA: Introduce acpi_hw_gpe_read() and acpi_hw_gpe_write()

Now that GPE blocks are validated at the initialization time, accesses
to GPE registers can be made more straightforward by ommitting all of
the redundant checks in acpi_hw_read() and acpi_hw_write() and only
invoking the OS-provided helper for the given type of access (read or
write) and the address space holding these registers.

For this reason, introduce simplified routines for accessing GPE
registers, acpi_hw_gpe_read() and acpi_hw_gpe_write(), designed in
accordance with the above observation, and modify all of the code
accessing GPE registers to use them instead of acpi_hw_read() and
acpi_hw_write(), respectively.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/achware.h
drivers/acpi/acpica/evgpe.c
drivers/acpi/acpica/evgpeblk.c
drivers/acpi/acpica/hwgpe.c