chore: Various soft-off review fixes

* Code style to avoid goto.
* Enable pm.c compilation via dedicated Kconfig flag.
* Comment wakeup trigger PM behavior.
This commit is contained in:
Pete Johanson
2023-12-29 15:03:14 -08:00
parent fceb0351a5
commit 5ebe924e94
6 changed files with 26 additions and 12 deletions

View File

@@ -423,8 +423,12 @@ config ZMK_EXT_POWER
bool "Enable support to control external power output"
default y
config ZMK_PM
bool
config ZMK_PM_SOFT_OFF
bool "Soft-off support"
select ZMK_PM
select PM_DEVICE
config ZMK_GPIO_KEY_WAKEUP_TRIGGER