summaryrefslogtreecommitdiffstats
path: root/src/shared/sleep-config.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2023-10-26 14:27:12 +0200
committerMike Yuan <me@yhndnzj.com>2023-10-27 11:57:03 +0200
commite024cdd270469371013a8f821aea30e5ab5a1065 (patch)
tree0a779b16658cfa75210ecfb8dcd451e197260c10 /src/shared/sleep-config.c
parentlogind: fix abnormal switching causing the screen to go black (diff)
downloadsystemd-e024cdd270469371013a8f821aea30e5ab5a1065.tar.xz
systemd-e024cdd270469371013a8f821aea30e5ab5a1065.zip
sleep: introduce sleep_operation_is_hibernation
Diffstat (limited to 'src/shared/sleep-config.c')
-rw-r--r--src/shared/sleep-config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c
index ab09530355..77b5ee5b84 100644
--- a/src/shared/sleep-config.c
+++ b/src/shared/sleep-config.c
@@ -305,7 +305,7 @@ static int sleep_supported_internal(
return false;
}
- if (IN_SET(operation, SLEEP_HIBERNATE, SLEEP_HYBRID_SLEEP)) {
+ if (sleep_operation_is_hibernation(operation)) {
r = sleep_mode_supported(sleep_config->modes[operation]);
if (r < 0)
return r;