From: H Hartley Sweeten Date: Tue, 11 Nov 2014 23:55:28 +0000 (-0700) Subject: staging: comedi: dmm32at: use 8255 module for Digital I/O subdevice X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~141 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=387ca51f7c403b342a9e382ac15c6df461ea2190;p=pandora-kernel.git staging: comedi: dmm32at: use 8255 module for Digital I/O subdevice The Dimond-MM-32-AT board uses an internal 82C55-type digital I/O circuit to provide the 24 digital I/O lines. The only quirk is the need to set the page selection bits in the control register to select page 1 addresses. Instead of duplicating the 8255 code, provide an (*io) callback and use the 8255 module to support this subdevice. This also removes the need for the private data in this driver. Signed-off-by: H Hartley Sweeten Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed