From: H Hartley Sweeten Date: Mon, 4 Feb 2013 23:43:56 +0000 (-0700) Subject: staging: comedi: quatech_daqp_cs: use (*insn_bits) for digital inputs X-Git-Tag: v3.9-rc1~127^2~123 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62100fefbc4f7f45149df1f537de17b4acf01391;p=pandora-kernel.git staging: comedi: quatech_daqp_cs: use (*insn_bits) for digital inputs Change the subdevice operation used to read the digital inputs from a (*insn_read) to a (*insn_bits) function. The (*insn_read) functions are expected to read 'insn->n' number of samples. The (*insn_bits) functions just read a single sample (insn->n = 1). Change the return from '1' to 'insn->n' to clarify what the return is. Also, set the 'maxdata' for the subdevice. For digital io this value should be '1' (digital io can only be 1 or 0). Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed