]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: multiq3: tidy up multiq3_encoder_insn_read()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 5 Oct 2015 22:33:17 +0000 (15:33 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 04:18:33 +0000 (21:18 -0700)
commit77bf792a89027bae0acbad72c32aa72f99d9d2b1
tree62e21df9b77cbef21b9a1c7bc07ef271383fe4ad
parent5f2db0c85d0735219aaf4252b2033d3c22ba9979
staging: comedi: multiq3: tidy up multiq3_encoder_insn_read()

Encoders are not a "normal" subdevice in comedi. For aesthetics, tidy
up this function and add a couple comments to clarify the function and
explain the strange munging of the data.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/multiq3.c