staging: comedi: das16: remove some unnecessary parentheses
These parentheses are not necessary. 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:
Родитель
05591eaf71
Коммит
27b579be13
|
@ -668,9 +668,9 @@ static int das16_cmd_test(struct comedi_device *dev, struct comedi_subdevice *s,
|
||||||
unsigned int tmp = cmd->scan_begin_arg;
|
unsigned int tmp = cmd->scan_begin_arg;
|
||||||
/* set divisors, correct timing arguments */
|
/* set divisors, correct timing arguments */
|
||||||
i8253_cascade_ns_to_timer_2div(devpriv->clockbase,
|
i8253_cascade_ns_to_timer_2div(devpriv->clockbase,
|
||||||
&(devpriv->divisor1),
|
&devpriv->divisor1,
|
||||||
&(devpriv->divisor2),
|
&devpriv->divisor2,
|
||||||
&(cmd->scan_begin_arg),
|
&cmd->scan_begin_arg,
|
||||||
cmd->flags & TRIG_ROUND_MASK);
|
cmd->flags & TRIG_ROUND_MASK);
|
||||||
err += (tmp != cmd->scan_begin_arg);
|
err += (tmp != cmd->scan_begin_arg);
|
||||||
}
|
}
|
||||||
|
@ -678,9 +678,9 @@ static int das16_cmd_test(struct comedi_device *dev, struct comedi_subdevice *s,
|
||||||
unsigned int tmp = cmd->convert_arg;
|
unsigned int tmp = cmd->convert_arg;
|
||||||
/* set divisors, correct timing arguments */
|
/* set divisors, correct timing arguments */
|
||||||
i8253_cascade_ns_to_timer_2div(devpriv->clockbase,
|
i8253_cascade_ns_to_timer_2div(devpriv->clockbase,
|
||||||
&(devpriv->divisor1),
|
&devpriv->divisor1,
|
||||||
&(devpriv->divisor2),
|
&devpriv->divisor2,
|
||||||
&(cmd->convert_arg),
|
&cmd->convert_arg,
|
||||||
cmd->flags & TRIG_ROUND_MASK);
|
cmd->flags & TRIG_ROUND_MASK);
|
||||||
err += (tmp != cmd->convert_arg);
|
err += (tmp != cmd->convert_arg);
|
||||||
}
|
}
|
||||||
|
@ -717,8 +717,10 @@ static unsigned int das16_set_pacer(struct comedi_device *dev, unsigned int ns,
|
||||||
struct das16_private_struct *devpriv = dev->private;
|
struct das16_private_struct *devpriv = dev->private;
|
||||||
unsigned long timer_base = dev->iobase + DAS16_TIMER_BASE_REG;
|
unsigned long timer_base = dev->iobase + DAS16_TIMER_BASE_REG;
|
||||||
|
|
||||||
i8253_cascade_ns_to_timer_2div(devpriv->clockbase, &(devpriv->divisor1),
|
i8253_cascade_ns_to_timer_2div(devpriv->clockbase,
|
||||||
&(devpriv->divisor2), &ns,
|
&devpriv->divisor1,
|
||||||
|
&devpriv->divisor2,
|
||||||
|
&ns,
|
||||||
rounding_flags & TRIG_ROUND_MASK);
|
rounding_flags & TRIG_ROUND_MASK);
|
||||||
|
|
||||||
/* Write the values of ctr1 and ctr2 into counters 1 and 2 */
|
/* Write the values of ctr1 and ctr2 into counters 1 and 2 */
|
||||||
|
@ -1072,7 +1074,7 @@ static int das16_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||||
set_dma_mode(devpriv->dma_chan, DMA_MODE_READ);
|
set_dma_mode(devpriv->dma_chan, DMA_MODE_READ);
|
||||||
release_dma_lock(flags);
|
release_dma_lock(flags);
|
||||||
|
|
||||||
init_timer(&(devpriv->timer));
|
init_timer(&devpriv->timer);
|
||||||
devpriv->timer.function = das16_timer_interrupt;
|
devpriv->timer.function = das16_timer_interrupt;
|
||||||
devpriv->timer.data = (unsigned long)dev;
|
devpriv->timer.data = (unsigned long)dev;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче