From: H Hartley Sweeten Date: Mon, 3 Mar 2014 23:47:39 +0000 (-0700) Subject: staging: comedi: ke_counter: fix ke_counter_insn_read() X-Git-Tag: v3.15-rc1~139^2~737 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d250972f93d3d73134bd8a251fed86e9e9d0dab5;p=pandora-kernel.git staging: comedi: ke_counter: fix ke_counter_insn_read() The comedi core expects the (*insn_read) functions to read insn->n values. Fix this function to work like the core expects. The counters are actually 25-bit (24-bits + 1 sign bit). Instead of munging the data when the sign bit is set just return the full 25-bit value. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed