From: H Hartley Sweeten Date: Thu, 9 Aug 2012 21:51:26 +0000 (-0700) Subject: staging: comedi: adl_pci6208: split the digital i/o subdevice X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~1002 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=270809a80fb610b54de5ee792a607dc37a71195c;p=pandora-kernel.git staging: comedi: adl_pci6208: split the digital i/o subdevice The PCI-6208/6216 cards have 4 digital inputs and 4 digital outputs. These are currently being handled by an 8 channel COMEDI_SUBD_DIO subdevice in this driver. This causes the 4 digital outputs to appear as channels 0 thru 3 and the 4 digital inputs to appear as channels 4 thru 7. Userspace can only work out part thisby doing the COMEDI_INSNLIST ioctl with the INSN_CONFIG_DIO_QUERY instruction for each channel to determine the io direction. Make things a bit cleaner for userspace by creating two subdevices instead. One for the 4 digital inputs and one for the 4 digital outputs. For both subdevices the channel number indicates the actual digital input/output signal. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed