diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-10-24 03:29:07 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-24 07:30:29 +0400 |
commit | 56c645ff7f1d57781a2231071be858cba5107678 (patch) | |
tree | c025a2d1f847e5fbbf6eefab649137e06cbb6cc1 /drivers/staging/winbond | |
parent | 82327aaf2e9fada01c972b296cbfc46a2ca9d85c (diff) | |
download | linux-56c645ff7f1d57781a2231071be858cba5107678.tar.xz |
staging: comedi: ni_660x: cleanup ni_660x_dio_insn_config()
This function handles all the insn_config instructions for the
digital i/o subdevice. These functions are supposed to return
the number of instruction parameters used (insn->n) or an -errno.
Fix the switch() so that the correct result is returned for all
INSN_CONFIG_* cases.
To clarify the code, add a local variable for the 'bit' used with
the instructions used to configure and query the input/output setting
of a channel.
For aesthetic reasons, add a whitespace between each case to improve
readability.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/winbond')
0 files changed, 0 insertions, 0 deletions