summaryrefslogtreecommitdiff
path: root/include/linux/fs_stack.h
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-03-07 02:58:28 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-11 21:10:16 +0400
commita6c57d2ed7ac6224ef70cc5d8adaf9ab8996736c (patch)
tree5fc07aea5d01db7dd67a509c1e54803ee7d08d5e /include/linux/fs_stack.h
parentd99fc2c3723e50c020bc1ca20107ecbf74d02e1f (diff)
downloadlinux-a6c57d2ed7ac6224ef70cc5d8adaf9ab8996736c.tar.xz
staging: comedi: adl_pci8164: simplify (*insn_{read,write})
The (*insn_read) and (*insn_write) functions for all the subdevices in this driver are the same except for the 'offset' that is added to the iobase and channel to read/write a register on the board. Pass the 'offset' in s->private so we can use the same (*insn_read) and (*insn->write) functions for all the subdevices. Also, fix the (*insn_read) and (*insn_write) functions so they work correctly. The comedi core expects them to read/write insn->n data values and then return the number of values used. For aesthetic reasons, add some whitespace to the subdevice init. Remove the dev_info() noise at the end of the attach. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fs_stack.h')
0 files changed, 0 insertions, 0 deletions