OSDN Git Service

staging: comedi: s626: specify bitshift for encoder A clock source
authorIan Abbott <abbotti@mev.co.uk>
Fri, 18 Oct 2013 13:40:50 +0000 (14:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 19 Oct 2013 20:47:23 +0000 (13:47 -0700)
commit2e179e428ce47c3988eead1944b5043de07731ae
tree1ba682ada5f81b775fe01aea0069493c26119eaa
parent6c661434f98dfe0ad301a4910b6209b0541c0239
staging: comedi: s626: specify bitshift for encoder A clock source

When setting the clock source for one of the 'A' encoders to operate in
"counter" mode in `s626_set_mode_a()`, bitshift the clock source value by
`S626_CRABIT_CLKSRC_A` for consistency with the other modes.  This has
no effect on the value since `S626_CRABIT_CLKSRC_A` is 0.

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