forked from kofal.net/zmk
fix(drivers): Proper static/const for data/config (#2769)
Save a tiny bit of RAM by properly marking our device config struct instances const consistently, and also add missing static modifiers to properly isolate config/data for drivers.
This commit is contained in:
@@ -445,7 +445,7 @@ static const struct kscan_driver_api kscan_charlieplex_api = {
|
||||
.charlieplex_state = kscan_charlieplex_state_##n, \
|
||||
}; \
|
||||
\
|
||||
static struct kscan_charlieplex_config kscan_charlieplex_config_##n = { \
|
||||
static const struct kscan_charlieplex_config kscan_charlieplex_config_##n = { \
|
||||
.cells = KSCAN_GPIO_LIST(kscan_charlieplex_cells_##n), \
|
||||
.debounce_config = \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user