driver: adc: npcx: remove threshold-reg-offset DT property

Remove `threshold-reg-offset` DT property and implement them with static
inline functions in `reg_def.h`

Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
This commit is contained in:
Mulin Chao 2023-08-24 00:50:55 -07:00 committed by Carles Cufí
commit eacdadf270
6 changed files with 32 additions and 42 deletions

View file

@ -24,10 +24,6 @@ properties:
type: int
required: true
description: the number of ADC channels
threshold-reg-offset:
type: int
required: true
description: the offset of threshold detector register address
threshold-count:
type: int
required: true