Skip to content

Commit 8e065d5

Browse files
authored
fix(kscan): Remove warning when keyboard is built without CONFIG_PM_DEVICE (#2808)
1 parent 425256b commit 8e065d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/module/drivers/kscan/kscan_gpio_charlieplex.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ static int kscan_charlieplex_set_all_outputs(const struct device *dev, const int
168168
return 0;
169169
}
170170

171+
#if IS_ENABLED(CONFIG_PM_DEVICE)
172+
171173
static int kscan_charlieplex_disconnect_all(const struct device *dev) {
172174
const struct kscan_charlieplex_config *config = dev->config;
173175

@@ -183,6 +185,8 @@ static int kscan_charlieplex_disconnect_all(const struct device *dev) {
183185
return 0;
184186
}
185187

188+
#endif
189+
186190
static int kscan_charlieplex_interrupt_configure(const struct device *dev,
187191
const gpio_flags_t flags) {
188192
const struct kscan_charlieplex_config *config = dev->config;

0 commit comments

Comments
 (0)