Skip to content

Commit

Permalink
fix(kscan): Remove warning when keyboard is built without CONFIG_PM_D…
Browse files Browse the repository at this point in the history
…EVICE (#2808)
  • Loading branch information
Nick-Munnich authored Feb 1, 2025
1 parent 425256b commit 8e065d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/module/drivers/kscan/kscan_gpio_charlieplex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
Expand Down

0 comments on commit 8e065d5

Please sign in to comment.