aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/drivers/me4000.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2015-08-05 10:44:44 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-07 15:03:27 -0700
commit13a463ae576d2e238647b2e2bbfda0512b22dabf (patch)
treef3e07c7e046f89c6bd23aaf875bf616ec2fdc29c /drivers/staging/comedi/drivers/me4000.c
parentstaging: comedi: me4000: remove 'board' from me4000_ai_check_chanlist() (diff)
downloadlinux-dev-13a463ae576d2e238647b2e2bbfda0512b22dabf.tar.xz
linux-dev-13a463ae576d2e238647b2e2bbfda0512b22dabf.zip
staging: comedi: me4000: make boardinfo flags bit-fields
Change the boardinfo 'has_counter' and 'ai_trig_analog' flags into bit-fields to save a bit of space. 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/comedi/drivers/me4000.c')
-rw-r--r--drivers/staging/comedi/drivers/me4000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/me4000.c b/drivers/staging/comedi/drivers/me4000.c
index 008929e8d3fe..cc05c88bf13e 100644
--- a/drivers/staging/comedi/drivers/me4000.c
+++ b/drivers/staging/comedi/drivers/me4000.c
@@ -193,8 +193,8 @@ struct me4000_board {
int ai_nchan;
int ai_diff_nchan;
int ai_sh_nchan;
- int ex_trig_analog;
- int has_counter;
+ unsigned int ex_trig_analog:1;
+ unsigned int has_counter:1;
};
static const struct me4000_board me4000_boards[] = {