Skip to content

Commit 9abef38

Browse files
adc: npcx: use new DT pinctrl accessors
Update to use the new APIs. Signed-off-by: Martí Bolívar <[email protected]>
1 parent 9f8f75d commit 9abef38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/adc/adc_npcx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ LOG_MODULE_REGISTER(adc_npcx, CONFIG_ADC_LOG_LEVEL);
2525
#define ADC_REGULAR_MEAST_VAL 0x0001
2626

2727
/* ADC channel number */
28-
#define NPCX_ADC_CH_COUNT DT_INST_PROP_LEN(0, pinctrl_0)
28+
#define NPCX_ADC_CH_COUNT DT_INST_NUM_PINCTRLS_BY_IDX(0, 0)
2929

3030
/* ADC targeted operating frequency (2MHz) */
3131
#define NPCX_ADC_CLK 2000000

0 commit comments

Comments
 (0)