forked from kofal.net/zmk
refactor: Remove v1 logging vestiges.
This commit is contained in:
committed by
Pete Johanson
parent
e84b4299b5
commit
062f94d014
@@ -43,7 +43,7 @@ static int kscan_composite_enable_callback(const struct device *dev) {
|
||||
|
||||
const struct device *dev = device_get_binding(cfg->label);
|
||||
if (!dev) {
|
||||
LOG_WRN("Failed to load child kscan device %s", log_strdup(cfg->label));
|
||||
LOG_WRN("Failed to load child kscan device %s", cfg->label);
|
||||
continue;
|
||||
}
|
||||
kscan_enable_callback(dev);
|
||||
@@ -57,7 +57,7 @@ static int kscan_composite_disable_callback(const struct device *dev) {
|
||||
|
||||
const struct device *dev = device_get_binding(cfg->label);
|
||||
if (!dev) {
|
||||
LOG_WRN("Failed to load child kscan device %s", log_strdup(cfg->label));
|
||||
LOG_WRN("Failed to load child kscan device %s", cfg->label);
|
||||
continue;
|
||||
}
|
||||
kscan_disable_callback(dev);
|
||||
|
||||
@@ -240,8 +240,8 @@ struct kscan_gpio_item_config {
|
||||
}; \
|
||||
\
|
||||
static const struct kscan_gpio_config_##n kscan_gpio_config_##n = { \
|
||||
.rows = {LISTIFY(INST_MATRIX_INPUTS(n), _KSCAN_GPIO_INPUT_CFG_INIT, (,), n)}, \
|
||||
.cols = {LISTIFY(INST_DEMUX_GPIOS(n), _KSCAN_GPIO_OUTPUT_CFG_INIT, (,), n)}, \
|
||||
.rows = {LISTIFY(INST_MATRIX_INPUTS(n), _KSCAN_GPIO_INPUT_CFG_INIT, (, ), n)}, \
|
||||
.cols = {LISTIFY(INST_DEMUX_GPIOS(n), _KSCAN_GPIO_OUTPUT_CFG_INIT, (, ), n)}, \
|
||||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(n, kscan_gpio_init_##n, NULL, &kscan_gpio_data_##n, \
|
||||
|
||||
@@ -327,7 +327,7 @@ static const struct kscan_driver_api kscan_direct_api = {
|
||||
"ZMK_KSCAN_DEBOUNCE_RELEASE_MS or debounce-release-ms is too large"); \
|
||||
\
|
||||
static const struct gpio_dt_spec kscan_direct_inputs_##n[] = { \
|
||||
LISTIFY(INST_INPUTS_LEN(n), KSCAN_DIRECT_INPUT_CFG_INIT, (,), n)}; \
|
||||
LISTIFY(INST_INPUTS_LEN(n), KSCAN_DIRECT_INPUT_CFG_INIT, (, ), n)}; \
|
||||
\
|
||||
static struct debounce_state kscan_direct_state_##n[INST_INPUTS_LEN(n)]; \
|
||||
\
|
||||
|
||||
@@ -433,10 +433,10 @@ static const struct kscan_driver_api kscan_matrix_api = {
|
||||
"ZMK_KSCAN_DEBOUNCE_RELEASE_MS or debounce-release-ms is too large"); \
|
||||
\
|
||||
static const struct gpio_dt_spec kscan_matrix_rows_##n[] = { \
|
||||
LISTIFY(INST_ROWS_LEN(n), KSCAN_GPIO_ROW_CFG_INIT, (,), n)}; \
|
||||
LISTIFY(INST_ROWS_LEN(n), KSCAN_GPIO_ROW_CFG_INIT, (, ), n)}; \
|
||||
\
|
||||
static const struct gpio_dt_spec kscan_matrix_cols_##n[] = { \
|
||||
LISTIFY(INST_COLS_LEN(n), KSCAN_GPIO_COL_CFG_INIT, (,), n)}; \
|
||||
LISTIFY(INST_COLS_LEN(n), KSCAN_GPIO_COL_CFG_INIT, (, ), n)}; \
|
||||
\
|
||||
static struct debounce_state kscan_matrix_state_##n[INST_MATRIX_LEN(n)]; \
|
||||
\
|
||||
|
||||
Reference in New Issue
Block a user