]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sleep-config: add explanatory comment on "modes" 29265/head
authorMike Yuan <me@yhndnzj.com>
Sun, 24 Sep 2023 10:28:54 +0000 (18:28 +0800)
committerMike Yuan <me@yhndnzj.com>
Wed, 27 Sep 2023 13:48:40 +0000 (21:48 +0800)
src/shared/sleep-config.h

index 45917d8b4f0c4162830ea87cd75b8c0835c965d6..467502a7da6586704703b5ef610b80f1bcd1b34a 100644 (file)
@@ -24,8 +24,9 @@ SleepOperation sleep_operation_from_string(const char *s) _pure_;
 
 typedef struct SleepConfig {
         bool allow[_SLEEP_OPERATION_MAX];
-        char **modes[_SLEEP_OPERATION_CONFIG_MAX];
+
         char **states[_SLEEP_OPERATION_CONFIG_MAX];
+        char **modes[_SLEEP_OPERATION_CONFIG_MAX]; /* Power mode after writing hibernation image */
 
         usec_t hibernate_delay_usec;
         usec_t suspend_estimation_usec;