summaryrefslogtreecommitdiff
path: root/app/drivers/kscan/kscan_gpio_matrix.c
diff options
context:
space:
mode:
authorinnovaker <66737976+innovaker@users.noreply.github.com>2020-11-28 20:03:37 +0000
committerPete Johanson <peter@peterjohanson.com>2020-12-14 12:41:25 -0500
commit3d7376d2e50adf9d807431161487e0eb19f52390 (patch)
tree799dd2e8749a1207be917659158381b9d98b85fb /app/drivers/kscan/kscan_gpio_matrix.c
parent090b5d4c13570bcbcbaec005b3d92cf4bf7c2e33 (diff)
refactor(app): replace `config_info` with `config`
See: https://docs.zephyrproject.org/latest/releases/release-notes-2.4.html PR: #467
Diffstat (limited to 'app/drivers/kscan/kscan_gpio_matrix.c')
-rw-r--r--app/drivers/kscan/kscan_gpio_matrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/drivers/kscan/kscan_gpio_matrix.c b/app/drivers/kscan/kscan_gpio_matrix.c
index 9887a28..9af7899 100644
--- a/app/drivers/kscan/kscan_gpio_matrix.c
+++ b/app/drivers/kscan/kscan_gpio_matrix.c
@@ -86,7 +86,7 @@ static int kscan_gpio_config_interrupts(struct device **devices,
(data->rows))); \
} \
static const struct kscan_gpio_item_config *kscan_gpio_input_configs_##n(struct device *dev) { \
- const struct kscan_gpio_config_##n *cfg = dev->config_info; \
+ const struct kscan_gpio_config_##n *cfg = dev->config; \
return (( \
COND_CODE_0(DT_ENUM_IDX(DT_DRV_INST(n), diode_direction), (cfg->cols), (cfg->rows)))); \
} \
@@ -97,7 +97,7 @@ static int kscan_gpio_config_interrupts(struct device **devices,
} \
static const struct kscan_gpio_item_config *kscan_gpio_output_configs_##n( \
struct device *dev) { \
- const struct kscan_gpio_config_##n *cfg = dev->config_info; \
+ const struct kscan_gpio_config_##n *cfg = dev->config; \
return ( \
COND_CODE_0(DT_ENUM_IDX(DT_DRV_INST(n), diode_direction), (cfg->rows), (cfg->cols))); \
} \