From: H Hartley Sweeten Date: Tue, 23 Apr 2013 01:36:28 +0000 (-0700) Subject: staging: comedi: das800: tidy up das800_do_insn_bits() X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26234771c1a53b0a3bf69c161d79cd37c77ebd1a;p=pandora-kernel.git staging: comedi: das800: tidy up das800_do_insn_bits() Use a couple local variables, mask and bits, to clarify this function. Its only necessary to update the outputs if the mask indicates that the bits are changing. Modify this function accordingly. Also, use the subdevice 'state' variable to hold the actual output channel state instead of needing to get it from the private data and shift it. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed