From: H Hartley Sweeten Date: Mon, 14 Jul 2014 19:06:55 +0000 (-0700) Subject: staging: comedi: ni_65xx: remove 'dio_direction' from private data X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~708 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11d892cc8c71f540fc50552a250a2975ac968611;p=pandora-kernel.git staging: comedi: ni_65xx: remove 'dio_direction' from private data The IO Select registers are readable. Remove the need for the 'dio_direction' member in the private data by just checking the register value for the INSN_CONFIG_DIO_QUERY instruction. Also, refactor the switch statement to return -EINVAL for unhandled instructions and have the (*insn_config) return insn->n normally. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed