]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: amplc_dio200: internalize 8255 DIO implementation
authorIan Abbott <abbotti@mev.co.uk>
Wed, 24 Oct 2012 15:47:57 +0000 (16:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 22:25:12 +0000 (15:25 -0700)
commitd0d1e85fad8efe2bb6637a5231349996c1bdac2b
treea3ba9ea33de6e0f11f94174f9a8dbffcc465e430
parent95cff1a962b30530ad89acfb3b34f37c55fbd171
staging: comedi: amplc_dio200: internalize 8255 DIO implementation

Implement the '8255' DIO subdevice internally to this module instead of
using the external "8255" module.  I plan to add support for additional
cards to this driver that would require the I/O callback functionality
of the 8255 module, but the existing callback functions do not have much
context to handle this elegantly.  The additional cards also have extra
DIO features which cannot be handled by the existing "8255" module and
that I'd like to support some time in the future.

The bottom line is I _could_ continue using the "8255" module for a
while with a callback function, but it would turn out to be a very ugly
callback function and I'd have to ditch the use of the "8255" module as
soon as I added an extra feature to the DIO subdevice.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_dio200.c