@@ -45,9 +45,9 @@ struct mcux_acmp_config {
4545 CMP_Type * base ;
4646 acmp_filter_config_t filter ;
4747 const struct pinctrl_dev_config * pincfg ;
48- #ifdef CONFIG_MCUX_ACMP_TRIGGER
48+ #ifdef CONFIG_SENSOR_MCUX_ACMP_TRIGGER
4949 void (* irq_config_func )(const struct device * dev );
50- #endif /* CONFIG_MCUX_ACMP_TRIGGER */
50+ #endif /* CONFIG_SENSOR_MCUX_ACMP_TRIGGER */
5151 bool high_speed : 1 ;
5252 bool unfiltered : 1 ;
5353 bool output : 1 ;
@@ -61,15 +61,15 @@ struct mcux_acmp_data {
6161#if MCUX_ACMP_HAS_DISCRETE_MODE
6262 acmp_discrete_mode_config_t discrete_config ;
6363#endif
64- #ifdef CONFIG_MCUX_ACMP_TRIGGER
64+ #ifdef CONFIG_SENSOR_MCUX_ACMP_TRIGGER
6565 const struct device * dev ;
6666 sensor_trigger_handler_t rising_handler ;
6767 const struct sensor_trigger * rising_trigger ;
6868 sensor_trigger_handler_t falling_handler ;
6969 const struct sensor_trigger * falling_trigger ;
7070 struct k_work work ;
7171 volatile uint32_t status ;
72- #endif /* CONFIG_MCUX_ACMP_TRIGGER */
72+ #endif /* CONFIG_SENSOR_MCUX_ACMP_TRIGGER */
7373 bool cout ;
7474};
7575
@@ -370,7 +370,7 @@ static int mcux_acmp_channel_get(const struct device *dev,
370370 return 0 ;
371371}
372372
373- #ifdef CONFIG_MCUX_ACMP_TRIGGER
373+ #ifdef CONFIG_SENSOR_MCUX_ACMP_TRIGGER
374374static int mcux_acmp_trigger_set (const struct device * dev ,
375375 const struct sensor_trigger * trig ,
376376 sensor_trigger_handler_t handler )
@@ -431,7 +431,7 @@ static void mcux_acmp_isr(const struct device *dev)
431431
432432 k_work_submit (& data -> work );
433433}
434- #endif /* CONFIG_MCUX_ACMP_TRIGGER */
434+ #endif /* CONFIG_SENSOR_MCUX_ACMP_TRIGGER */
435435
436436static int mcux_acmp_init (const struct device * dev )
437437{
@@ -462,15 +462,15 @@ static int mcux_acmp_init(const struct device *dev)
462462 /* Disable DAC */
463463 ACMP_SetDACConfig (config -> base , NULL );
464464
465- #ifdef CONFIG_MCUX_ACMP_TRIGGER
465+ #ifdef CONFIG_SENSOR_MCUX_ACMP_TRIGGER
466466 data -> dev = dev ;
467467 k_work_init (& data -> work , mcux_acmp_trigger_work_handler );
468468
469469 config -> irq_config_func (dev );
470470 ACMP_EnableInterrupts (config -> base ,
471471 kACMP_OutputRisingInterruptEnable |
472472 kACMP_OutputFallingInterruptEnable );
473- #endif /* CONFIG_MCUX_ACMP_TRIGGER */
473+ #endif /* CONFIG_SENSOR_MCUX_ACMP_TRIGGER */
474474
475475 ACMP_Enable (config -> base , true);
476476
@@ -480,9 +480,9 @@ static int mcux_acmp_init(const struct device *dev)
480480static const struct sensor_driver_api mcux_acmp_driver_api = {
481481 .attr_set = mcux_acmp_attr_set ,
482482 .attr_get = mcux_acmp_attr_get ,
483- #ifdef CONFIG_MCUX_ACMP_TRIGGER
483+ #ifdef CONFIG_SENSOR_MCUX_ACMP_TRIGGER
484484 .trigger_set = mcux_acmp_trigger_set ,
485- #endif /* CONFIG_MCUX_ACMP_TRIGGER */
485+ #endif /* CONFIG_SENSOR_MCUX_ACMP_TRIGGER */
486486 .sample_fetch = mcux_acmp_sample_fetch ,
487487 .channel_get = mcux_acmp_channel_get ,
488488};
@@ -503,7 +503,7 @@ static const struct mcux_acmp_config mcux_acmp_config_##n = { \
503503 config_func_init \
504504}
505505
506- #ifdef CONFIG_MCUX_ACMP_TRIGGER
506+ #ifdef CONFIG_SENSOR_MCUX_ACMP_TRIGGER
507507#define MCUX_ACMP_CONFIG_FUNC (n ) \
508508 static void mcux_acmp_config_func_##n(const struct device *dev) \
509509 { \
@@ -517,12 +517,12 @@ static const struct mcux_acmp_config mcux_acmp_config_##n = { \
517517 .irq_config_func = mcux_acmp_config_func_##n
518518#define MCUX_ACMP_INIT_CONFIG (n ) \
519519 MCUX_ACMP_DECLARE_CONFIG(n, MCUX_ACMP_CONFIG_FUNC_INIT(n))
520- #else /* !CONFIG_MCUX_ACMP_TRIGGER */
520+ #else /* !CONFIG_SENSOR_MCUX_ACMP_TRIGGER */
521521#define MCUX_ACMP_CONFIG_FUNC (n )
522522#define MCUX_ACMP_CONFIG_FUNC_INIT
523523#define MCUX_ACMP_INIT_CONFIG (n ) \
524524 MCUX_ACMP_DECLARE_CONFIG(n, MCUX_ACMP_CONFIG_FUNC_INIT)
525- #endif /* !CONFIG_MCUX_ACMP_TRIGGER */
525+ #endif /* !CONFIG_SENSOR_MCUX_ACMP_TRIGGER */
526526
527527#define MCUX_ACMP_INIT (n ) \
528528 static struct mcux_acmp_data mcux_acmp_data_##n; \
0 commit comments