adc: npcx: use new DT pinctrl accessors

Update to use the new APIs.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2021-08-12 13:03:30 -07:00 committed by Anas Nashif
commit 2b9d477576

View file

@ -25,7 +25,7 @@ LOG_MODULE_REGISTER(adc_npcx, CONFIG_ADC_LOG_LEVEL);
#define ADC_REGULAR_MEAST_VAL 0x0001 #define ADC_REGULAR_MEAST_VAL 0x0001
/* ADC channel number */ /* ADC channel number */
#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)
/* ADC targeted operating frequency (2MHz) */ /* ADC targeted operating frequency (2MHz) */
#define NPCX_ADC_CLK 2000000 #define NPCX_ADC_CLK 2000000