staging: comedi: adl_pci9111: use local variables for the chan/range
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 11 Sep 2012 02:00:46 +0000 (19:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Sep 2012 03:05:56 +0000 (20:05 -0700)
commitae479ee562cf3d7d33eebbb30e6c3105475ed5b8
treec416fa412ce95bd42119fe40a6ed7a9516c9aa3a
parent9852d13745bef4158e152c3b00f0678ca1b5ccb7
staging: comedi: adl_pci9111: use local variables for the chan/range

Simplify the chan/range in pci9111_ai_insn_read() by using local
variables for hold the values and by just passing insn->chanspec
to the CR_* macros instead of using (&insn->chanspec)[0].

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>
drivers/staging/comedi/drivers/adl_pci9111.c