fix no dr error
This commit is contained in:
parent
4b5efc0278
commit
9edbced5b7
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ static const struct sensor_driver_api pinnacle_driver_api = {
|
||||||
.rotate_90 = DT_INST_PROP(0, rotate_90), \
|
.rotate_90 = DT_INST_PROP(0, rotate_90), \
|
||||||
.sleep_en = DT_INST_PROP(0, sleep), \
|
.sleep_en = DT_INST_PROP(0, sleep), \
|
||||||
.no_taps = DT_INST_PROP(0, no_taps), \
|
.no_taps = DT_INST_PROP(0, no_taps), \
|
||||||
COND_CODE_1(CONFIG_PINNACLE_TRIGGER, (.dr = GPIO_DT_SPEC_GET(DT_DRV_INST(0), dr_gpios),), ) \
|
COND_CODE_1(CONFIG_PINNACLE_TRIGGER, (.dr = GPIO_DT_SPEC_GET(DT_DRV_INST(0), dr_gpios),), ()) \
|
||||||
}; \
|
}; \
|
||||||
DEVICE_DT_INST_DEFINE(n, pinnacle_init, NULL, &pinnacle_data_##n, &pinnacle_config_##n, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY, &pinnacle_driver_api);
|
DEVICE_DT_INST_DEFINE(n, pinnacle_init, NULL, &pinnacle_data_##n, &pinnacle_config_##n, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY, &pinnacle_driver_api);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue