From d250972f93d3d73134bd8a251fed86e9e9d0dab5 Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Mon, 3 Mar 2014 16:47:39 -0700 Subject: [PATCH] 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-format-patch failed