From: H Hartley Sweeten Date: Wed, 3 Apr 2013 18:37:46 +0000 (-0700) Subject: staging: comedi: rtd520: cleanup rtd_dio_insn_config() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~345 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=efa5b32658995f434d880f28b76d9d5d762a749b;p=pandora-kernel.git staging: comedi: rtd520: cleanup rtd_dio_insn_config() Add a local variable to make this function a bit cleaner and remove the unnecessary comments. The comedi core expects this function to return the number of data parameters used. Change the return from '1' to 'insn->n' to make this more apparent. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Cc: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed