We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8313320 commit 2b9d477Copy full SHA for 2b9d477
drivers/adc/adc_npcx.c
@@ -25,7 +25,7 @@ LOG_MODULE_REGISTER(adc_npcx, CONFIG_ADC_LOG_LEVEL);
25
#define ADC_REGULAR_MEAST_VAL 0x0001
26
27
/* ADC channel number */
28
-#define NPCX_ADC_CH_COUNT DT_INST_PROP_LEN(0, pinctrl_0)
+#define NPCX_ADC_CH_COUNT DT_INST_NUM_PINCTRLS_BY_IDX(0, 0)
29
30
/* ADC targeted operating frequency (2MHz) */
31
#define NPCX_ADC_CLK 2000000
0 commit comments