From: H Hartley Sweeten Date: Mon, 3 Mar 2014 23:47:38 +0000 (-0700) Subject: staging: comedi: ke_counter: fix ke_counter_insn_write() X-Git-Tag: v3.15-rc1~139^2~738 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99a1b98b32211713d8e544e9737a5fa20b73dce3;p=pandora-kernel.git staging: comedi: ke_counter: fix ke_counter_insn_write() The comedi core expects the (*insn_write) functions to write insn->n values. Fix this function to work like the core expects. The counters are actually 25-bit (24-bits + 1 sign bit). The comedi core validates that all the data is in range before calling the (*insn_write), fix the subdevice maxdata so that the sign bit can actually be changed. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed