]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ACPI: TAD: Split three functions to untangle runtime PM handling
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 31 Mar 2026 19:24:44 +0000 (21:24 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 4 Apr 2026 18:36:54 +0000 (20:36 +0200)
commitb14b77bbea0a82cb66f1538824783e63d4128510
treeb9889364db06553921c428d88303423109e934aa
parentf706a63fd82242a21cb5248b76c21d3c302a4b54
ACPI: TAD: Split three functions to untangle runtime PM handling

Move the core functionality of acpi_tad_get_real_time(),
acpi_tad_wake_set(), and acpi_tad_wake_read() into separate functions
called __acpi_tad_get_real_time(), __acpi_tad_wake_set(), and
__acpi_tad_wake_read(), respectively, which can be called from
code blocks following a single runtime resume of the device.

This will facilitate adding alarm support to the RTC class device
interface of the driver going forward.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://patch.msgid.link/23076728.EfDdHjke4D@rafael.j.wysocki
drivers/acpi/acpi_tad.c