From: Ian Abbott Date: Tue, 5 Mar 2013 13:13:44 +0000 (+0000) Subject: staging: comedi: dt9812: use CR_CHAN() for channel number X-Git-Tag: v3.9-rc3~19^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=564c526a1bed5e42b5cd52cfe1752c4296ef17a6;p=pandora-kernel.git staging: comedi: dt9812: use CR_CHAN() for channel number As pointed out by Dan Carpenper in , the dt9812 comedi driver's use of the `chanspec` member of `struct comedi_insn` as a channel number is incorrect. Change it to use `CR_CHAN(insn->chanspec)` as the channel number (where `insn` is a pointer to the `struct comedi_insn` being processed). Reported-by: Dan Carpenter Cc: stable # 3.8 onwards Cc: Anders Blomdell Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed