Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI: PM: s2idle: Staticise LPS0 callback functions

The LPS0 callback functions in x86/s2idle.c can be made static, so do
that and remove their declarations from sleep.h.

While at it, add the _lps0 suffix to their names to indicate that
they are LPS0-specific.

No functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
Link: https://patch.msgid.link/2254836.irdbgypaU6@rafael.j.wysocki

+6 -9
-3
drivers/acpi/sleep.h
··· 17 17 18 18 extern int acpi_s2idle_begin(void); 19 19 extern int acpi_s2idle_prepare(void); 20 - extern int acpi_s2idle_prepare_late(void); 21 - extern void acpi_s2idle_check(void); 22 20 extern bool acpi_s2idle_wake(void); 23 - extern void acpi_s2idle_restore_early(void); 24 21 extern void acpi_s2idle_restore(void); 25 22 extern void acpi_s2idle_end(void); 26 23
+6 -6
drivers/acpi/x86/s2idle.c
··· 515 515 .attach = lps0_device_attach, 516 516 }; 517 517 518 - int acpi_s2idle_prepare_late(void) 518 + static int acpi_s2idle_prepare_late_lps0(void) 519 519 { 520 520 struct acpi_s2idle_dev_ops *handler; 521 521 ··· 561 561 return 0; 562 562 } 563 563 564 - void acpi_s2idle_check(void) 564 + static void acpi_s2idle_check_lps0(void) 565 565 { 566 566 struct acpi_s2idle_dev_ops *handler; 567 567 ··· 574 574 } 575 575 } 576 576 577 - void acpi_s2idle_restore_early(void) 577 + static void acpi_s2idle_restore_early_lps0(void) 578 578 { 579 579 struct acpi_s2idle_dev_ops *handler; 580 580 ··· 614 614 static const struct platform_s2idle_ops acpi_s2idle_ops_lps0 = { 615 615 .begin = acpi_s2idle_begin, 616 616 .prepare = acpi_s2idle_prepare, 617 - .prepare_late = acpi_s2idle_prepare_late, 618 - .check = acpi_s2idle_check, 617 + .prepare_late = acpi_s2idle_prepare_late_lps0, 618 + .check = acpi_s2idle_check_lps0, 619 619 .wake = acpi_s2idle_wake, 620 - .restore_early = acpi_s2idle_restore_early, 620 + .restore_early = acpi_s2idle_restore_early_lps0, 621 621 .restore = acpi_s2idle_restore, 622 622 .end = acpi_s2idle_end, 623 623 };