]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: s626: fix the number of dio channels
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 2 Jul 2012 21:26:24 +0000 (14:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2012 22:56:14 +0000 (15:56 -0700)
commitbb664f5824f54849112d5b8a4050b6f3f97f3c58
treee2d27fcbf79eb0fbf4905a37247bfb48e62fa211
parentf0447f1af46aee917891cd3ec0cf52e0eb120579
staging: comedi: s626: fix the number of dio channels

The first digital i/o subdevice has its n_chan set to S626_DIO_CHANNELS
which is defined as 48. This is actually the total number of channels
provided by all three digital i/o subdevices. Each subdevice only has
16 channels.

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/s626.c