]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: ni_daq_700: fix dio subdevice regression
authorFred Brooks <nsaspook@nsaspook.com>
Tue, 2 Oct 2012 10:10:26 +0000 (11:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 18:45:07 +0000 (11:45 -0700)
commitb6184f9666df812f8392d63ea28a18e3029b280e
tree176c6114a0345773c3f82af401ee8661e40a7a15
parentd69b33197bb7367c05c1655127ddb73e6a5e8312
staging: comedi: ni_daq_700: fix dio subdevice regression

Here is a small patch to fix a problem caused by a previous patch that
removed the  callback function.  The callback remove patch:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=61e3d316d72684d5356c2ce6ac5f7f5a6a01e0e6

I finally booted my dev machine on the latest kernel (running Debian
here so it's still on 3.2 normally) to test the ni_daq_700 driver with
my test program and noticed this bug.

Shift the DIO_R read result to bits 8..15 Digital direction
configuration: channels 0-7 output, 8-15 input (8225 device emu as port
A output, port B input, port C N/A).

Cc: <stable@vger.kernel.org> # 3.6.x
Signed-off-by: Fred Brooks <nsaspook@nsaspook.com>
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/ni_daq_700.c