From: H Hartley Sweeten Date: Mon, 18 Jun 2012 20:16:35 +0000 (-0700) Subject: staging: comedi: fix return value for insn_bits functions X-Git-Tag: v3.6-rc1~100^2~722 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2714e3e42e746d6c8525c35fdcc58fb60c2830d;p=pandora-kernel.git staging: comedi: fix return value for insn_bits functions The comedi_subdevice 'insn_bits' functions return the number of data elements used to perform the command. Most of the insn_bits functions return an open coded '2' to indicate this. The same value is available as 'insn->n'. Return that instead to better indicate what the return means. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Cc: Frank Mori Hess Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed