From: H Hartley Sweeten Date: Tue, 12 Aug 2014 18:41:19 +0000 (-0700) Subject: staging: comedi: 8255: add a comedi_device param to the (*io) callback X-Git-Tag: fixes-for-v3.18-merge-window~15^2~1219 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09d6dd7490ee7f1dda926e309df370e28679a71c;p=pandora-kernel.git staging: comedi: 8255: add a comedi_device param to the (*io) callback The 8255 driver uses an (*io) callback to read/write the registers of the 8255 device. The default callback provided by the driver uses inb()/outb() calls to access to registers based on an 'iobase' that was initialized during the subdev_8255_init() and a 'port' value. The users of this module can optionally provide a custom (*io) callback to handle the read/write in another manner. Make the (*io) callback a bit more flexible by also passing the comedi_device pointer as a parameter. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed