struct das800_private {
unsigned int count; /* number of data points left to be taken */
- int forever; /* flag that we should take data forever */
unsigned int divisor1; /* counter 1 value for timed conversions */
unsigned int divisor2; /* counter 2 value for timed conversions */
- int do_bits; /* digital output bits */
+ unsigned int do_bits; /* digital output bits */
+ bool forever; /* flag that we should take data forever */
};
static void das800_ind_write(struct comedi_device *dev,
{
struct das800_private *devpriv = dev->private;
- devpriv->forever = 0;
+ devpriv->forever = false;
devpriv->count = 0;
das800_disable(dev);
return 0;
switch (async->cmd.stop_src) {
case TRIG_COUNT:
devpriv->count = async->cmd.stop_arg * async->cmd.chanlist_len;
- devpriv->forever = 0;
+ devpriv->forever = false;
break;
case TRIG_NONE:
- devpriv->forever = 1;
+ devpriv->forever = true;
devpriv->count = 0;
break;
default: