From: H Hartley Sweeten Date: Tue, 1 Oct 2013 22:10:41 +0000 (-0700) Subject: staging: comedi: ni_6527: tidy up ni6527_di_insn_config() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~474 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6d9681b40e6dde9f8cbd922efff1f4d5433adc6;p=pandora-kernel.git staging: comedi: ni_6527: tidy up ni6527_di_insn_config() The core will validate the insn->n value based on the actual instruction (data[0]) that is being handled. Remove the sanity check and change the instruction handling into a switch. This follows the normal format for (*insn_config) functions and make adding additional instructions easier. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed