fix(kscan): Remove warning when keyboard is built without CONFIG_PM_DEVICE (#2808)

This commit is contained in:
Nicolas Munnich 2025-02-01 19:16:52 +01:00 committed by GitHub
parent 425256bc0d
commit 8e065d55b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -168,6 +168,8 @@ static int kscan_charlieplex_set_all_outputs(const struct device *dev, const int
return 0;
}
#if IS_ENABLED(CONFIG_PM_DEVICE)
static int kscan_charlieplex_disconnect_all(const struct device *dev) {
const struct kscan_charlieplex_config *config = dev->config;
@ -183,6 +185,8 @@ static int kscan_charlieplex_disconnect_all(const struct device *dev) {
return 0;
}
#endif
static int kscan_charlieplex_interrupt_configure(const struct device *dev,
const gpio_flags_t flags) {
const struct kscan_charlieplex_config *config = dev->config;