From: H Hartley Sweeten Date: Mon, 10 Nov 2014 23:20:16 +0000 (-0700) Subject: staging: comedi: addi_apci_1564: split timer and counter subdevices X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~162 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0658d6de9c9750201a5728f25dd3037a73941077;p=pandora-kernel.git staging: comedi: addi_apci_1564: split timer and counter subdevices The timer subdevice is currently broken in this driver. The Rev 1.0 and 2.x versions of the board both have a 12-bit timer. But only the Rev 2.x boards have the 3 32-bit counters. Split the current timer subdevice into two separate subdevices: 1) A single channel 12-bit timer subdevice 2) A three channel 32-bit counter subdevice This represents the hardware correctly and the counters can be disabled on the Rev 1.0 boards. Split up the current (*insn_config), (*insn_write), and (*insn_read) so they only deal with the hardware associated with the subdevice. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed