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:
parent
831332068b
commit
2b9d477576
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue