From: H Hartley Sweeten Date: Fri, 24 Oct 2014 17:26:05 +0000 (-0700) Subject: staging: comedi: addi_apci_1564: remove private data 'mode_select_register' X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~721 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7885b070b83ce5c8fb42bf65047e7dd6388d7b20;p=pandora-kernel.git staging: comedi: addi_apci_1564: remove private data 'mode_select_register' This driver currently passes the timer channel as the data[5] element to the timer (*insn_config) function. This is stored in the private data and use in the timer (*insn_read) and (*insn_write) functions to read/write the timer. This is just wrong, comedi passes the channel number in the insn->chanspec. Use that instead and remove the private data member. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed