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)
commitc14d1769ba81ed084adb450d2fa1bacaee3cd2c7
treee2d27fcbf79eb0fbf4905a37247bfb48e62fa211
parentf4ce61a0ca021d9226da9c3269899ae75725468a
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