From: H Hartley Sweeten Date: Tue, 6 Nov 2012 17:02:16 +0000 (-0700) Subject: staging: comedi: addi_apci_3xxx: fix digital output 'insn_bits' function X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~562 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b70a4f4f97b70e8cd9d8a16983758aa4fc3450b;p=pandora-kernel.git staging: comedi: addi_apci_3xxx: fix digital output 'insn_bits' function This driver does not follow the comedi API. The digital output 'insn_bits' function is passed a mask value in data[0] indicating which output bits in data[1] are changing. The function is then supposed to update the outputs accordingly and then return the current state of the outputs in data[1]. Fix the 'insn_bits' function so it works like the comedi core expects. The core can then use the function to emulate the 'insn_read' and 'insn_write' functions for individual channels. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed