staging: comedi: hwdrv_apci3501: remove "magic" numbers in apci3501_read_insn_timer()
Use register bit defines from addi_tcw.h to remove the "magic" numbers. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
0d5e03079d
Коммит
1c38d03ea9
|
@ -133,7 +133,8 @@ static int apci3501_read_insn_timer(struct comedi_device *dev,
|
|||
devpriv->timer_mode != ADDIDATA_WATCHDOG)
|
||||
return -EINVAL;
|
||||
|
||||
data[0] = inl(devpriv->tcw + ADDI_TCW_STATUS_REG) & 0x1;
|
||||
data[0] = inl(devpriv->tcw + ADDI_TCW_STATUS_REG) &
|
||||
ADDI_TCW_STATUS_OVERFLOW;
|
||||
data[1] = inl(devpriv->tcw + ADDI_TCW_VAL_REG);
|
||||
|
||||
return insn->n;
|
||||
|
|
Загрузка…
Ссылка в новой задаче