OSDN Git Service

ACPI: EC: PM: Consolidate some code depending on PM_SLEEP
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 31 Jul 2019 09:05:52 +0000 (11:05 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Aug 2019 09:25:43 +0000 (11:25 +0200)
commitd7589404932be148fabe696b56b7c391bad6bdb1
treee069888d143609d45f958a8b82a8140b9d231372
parent6e86633a791fdf631617ef3a9af3263141d34bc9
ACPI: EC: PM: Consolidate some code depending on PM_SLEEP

Move some routines, including acpi_ec_dispatch_gpe(), that are only
used if CONFIG_PM_SLEEP is set to the #ifdef block containing the EC
suspend and resume callbacks, to make the "full EC PM picture" easier
to follow.

While at it, move the header of acpi_ec_dispatch_gpe() in the
header file to a CONFIG_PM_SLEEP #ifdef block.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
drivers/acpi/ec.c
drivers/acpi/internal.h