From: H Hartley Sweeten Date: Mon, 14 Jul 2014 19:07:05 +0000 (-0700) Subject: staging: comedi: ni_65xx: remove 'output_bits' from private data X-Git-Tag: omap-for-v3.17/fixes-against-rc2~166^2~698 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c70b5360b539f9b177bd02e0b3b88345116ee52;p=pandora-kernel.git staging: comedi: ni_65xx: remove 'output_bits' from private data Remove the need for the 'output_bits' in the private data by just reading the current state of the data port when updating the output channels in the (*insn_bits) function. Add a local variable to handle the inverting of the hardware values when the boardinfo indicates that the outputs are inverted. Rename the local variable 'port_read_bits' to 'bits' so that we can use it for updating the output channels and reading back the actual state to return to the user. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed