ACPICA: Remove some code duplication from acpi_ev_address_space_dispatch
authorHans de Goede <hdegoede@redhat.com>
Thu, 18 Feb 2021 23:17:08 +0000 (15:17 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 19 Feb 2021 15:03:25 +0000 (16:03 +0100)
commit8f6493d1b834a4331de139d9808300216fc7712d
tree11cb3c4a80720d5e3fb8c2b497ea5b7adf21dac8
parentc27f3d011b08540e68233cf56274fdc34bebb9b5
ACPICA: Remove some code duplication from acpi_ev_address_space_dispatch

ACPICA commit 383f50ff8cb7424ca16a6c0234f103b41d4a783e

The handling of the space_id == ACPI_ADR_SPACE_GSBUS and
space_id == ACPI_ADR_SPACE_GPIO cases is almost identical,
fold the 2 cases into 1 to remove some code duplication.

Link: https://github.com/acpica/acpica/commit/383f50ff
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/evregion.c