summaryrefslogtreecommitdiff
path: root/app/drivers/zephyr/ec11.c
diff options
context:
space:
mode:
authorNick Winans <nick.win999@gmail.com>2020-10-23 00:55:50 -0500
committerGitHub <noreply@github.com>2020-10-23 00:55:50 -0500
commit70ffcca3b42f5dacf5be155a56b11387a7e68b63 (patch)
tree80954a5afb17978ad897e3dde0385cfee0a902c9 /app/drivers/zephyr/ec11.c
parent162c6b77db27c158b05ed65effa8d8ded68ba9b7 (diff)
parent04b7a759f4c676c96da261a724cef1517614dea1 (diff)
Merge branch 'main' into bluetooth/battery-reporting
Diffstat (limited to 'app/drivers/zephyr/ec11.c')
-rw-r--r--app/drivers/zephyr/ec11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/drivers/zephyr/ec11.c b/app/drivers/zephyr/ec11.c
index a4e96c2..00d0090 100644
--- a/app/drivers/zephyr/ec11.c
+++ b/app/drivers/zephyr/ec11.c
@@ -142,7 +142,7 @@ int ec11_init(struct device *dev) {
.b_flags = DT_INST_GPIO_FLAGS(n, b_gpios), \
COND_CODE_0(DT_INST_NODE_HAS_PROP(n, resolution), (1), (DT_INST_PROP(n, resolution))), \
}; \
- DEVICE_AND_API_INIT(ec11, DT_INST_LABEL(n), ec11_init, &ec11_data_##n, &ec11_cfg_##n, \
+ DEVICE_AND_API_INIT(ec11_##n, DT_INST_LABEL(n), ec11_init, &ec11_data_##n, &ec11_cfg_##n, \
POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY, &ec11_driver_api);
DT_INST_FOREACH_STATUS_OKAY(EC11_INST) \ No newline at end of file