]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PM: wakeup: Do not expose 4 device wakeup source APIs
authorZijun Hu <quic_zijuhu@quicinc.com>
Sun, 20 Apr 2025 04:19:09 +0000 (12:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 14:02:29 +0000 (16:02 +0200)
commit142ba31d8b4aff086c4f080bd97d437232922177
tree71847eb169c61cd2a068aaf6a1305003ddc258d9
parent93b27a845ec1355459e6aa539dd203a2f5136d8f
PM: wakeup: Do not expose 4 device wakeup source APIs

The following 4 APIs are only used by drivers/base/power/wakeup.c
internally.

- wakeup_source_create()
- wakeup_source_destroy()
- wakeup_source_add()
- wakeup_source_remove()

Do not expose them by making them as static functions.

Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20250420-fix_power-v2-1-9b938d2283aa@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/power/wakeup.c
include/linux/pm_wakeup.h