From: H Hartley Sweeten Date: Tue, 23 Oct 2012 23:29:07 +0000 (-0700) Subject: staging: comedi: ni_660x: cleanup ni_660x_dio_insn_config() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~1046 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56c645ff7f1d57781a2231071be858cba5107678;p=pandora-kernel.git staging: comedi: ni_660x: cleanup ni_660x_dio_insn_config() This function handles all the insn_config instructions for the digital i/o subdevice. These functions are supposed to return the number of instruction parameters used (insn->n) or an -errno. Fix the switch() so that the correct result is returned for all INSN_CONFIG_* cases. To clarify the code, add a local variable for the 'bit' used with the instructions used to configure and query the input/output setting of a channel. For aesthetic reasons, add a whitespace between each case to improve readability. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed