diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-04-23 01:37:48 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-23 17:41:52 (GMT) |
commit | ad5774fcd2cd40dd8a0f3d9db9b0a3538d47e610 (patch) | |
tree | ae3e0bec7003c6d39ed032fa4c5171e54304e8be /drivers/staging | |
parent | 7f340859f26e6de7069d0c4f234d948820c4fd47 (diff) | |
download | linux-fsl-qoriq-ad5774fcd2cd40dd8a0f3d9db9b0a3538d47e610.tar.xz |
staging: comedi: das800: tidy up the private data
For aesthetic reasons, change the 'do_bits' type to unsigned int
to match the subdevice s->state. and change the 'forever' flag
to a bool.
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/comedi/drivers/das800.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/comedi/drivers/das800.c b/drivers/staging/comedi/drivers/das800.c index b72bbe9..9eced62 100644 --- a/drivers/staging/comedi/drivers/das800.c +++ b/drivers/staging/comedi/drivers/das800.c @@ -228,10 +228,10 @@ static const struct das800_board das800_boards[] = { 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, @@ -301,7 +301,7 @@ static int das800_cancel(struct comedi_device *dev, struct comedi_subdevice *s) { struct das800_private *devpriv = dev->private; - devpriv->forever = 0; + devpriv->forever = false; devpriv->count = 0; das800_disable(dev); return 0; @@ -434,10 +434,10 @@ static int das800_ai_do_cmd(struct comedi_device *dev, 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: |