From: H Hartley Sweeten Date: Wed, 19 Sep 2012 22:12:01 +0000 (-0700) Subject: staging: comedi: s526: cleanup s526_gpct_rinsn() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a29edf69807a43ad7594554cea4def755443103;p=pandora-kernel.git staging: comedi: s526: cleanup s526_gpct_rinsn() Use a local variable for the iobase of the channel being read. This makes the inw() calls a bit cleaner. Move the masking of the read data to make the value stored in the data array a bit clearer. The comedi core expects insn_read functions to return the number of insn data values read. For this function, the final value of 'i' is correct but change the return to 'insn->n' just to make it clear. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed