From: H Hartley Sweeten Date: Mon, 9 Dec 2013 22:31:01 +0000 (-0700) Subject: staging: comedi: pcmmio: simplify pcmmio_dio_insn_bits() X-Git-Tag: v3.14-rc1~150^2~317 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0398606c1863f8a91b6a75d33a2d5a6131250be7;p=pandora-kernel.git staging: comedi: pcmmio: simplify pcmmio_dio_insn_bits() Currently this function uses the subdevice private data to get the iobase address needed to update the dio output channel state and read the current state of the input channels. This subdevice private data is in the process of being removed. Use the subdevice 'index' to determine the base 'port' needed to access the correct digital i/o registers. The pcmmio_dio_write() function can then be used to update the outputs. Introduce a new helper function, pcmmio_dio_read(), to read the current state of the input channels. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed