H Hartley Sweeten 1de0222535 staging: comedi: ni_daq_700: remove the CALLBACK_* code
This driver was originally copied from the 8255 driver. The 8255
uses a callback function to handle the io operations to the device.
In this driver, the callback adds unneeded complexity.

The CALLBACK_ARG for this driver is always 'dev->iobase' and the
CALLBACK_FUNC is always 'subdev_700_cb'.

The callback function is also overly complex for this driver.
It takes a 'dir' parameter to determine if the io is a write or
read, a 'port' parameter that is not used, a 'data' parameter
that is only used for writes, and an 'arg' which is the iobase
of the device.

Unwind all of it and just put the outb()/inb() call in the code
where needed.

This allows getting rid of the private data completely. Refactor
the code based on it's removal.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-06-22 20:55:07 -07:00
..
2012-05-26 12:22:27 -07:00
2012-05-26 12:42:29 -07:00
2012-05-24 16:22:53 -04:00
2012-05-31 08:46:50 +02:00
2012-05-26 13:05:55 -07:00
2012-05-08 12:35:06 +02:00
2012-05-26 12:42:29 -07:00
2012-05-23 14:07:06 -07:00
2012-05-22 16:02:13 -07:00
2012-05-22 16:02:13 -07:00
2012-05-30 08:49:28 -07:00
2012-05-29 16:22:32 -07:00
2012-05-26 12:42:29 -07:00
2012-05-29 11:53:11 -07:00
2012-06-02 17:09:08 -04:00
2012-05-22 16:02:13 -07:00
2012-05-07 09:56:39 +08:00
2012-05-29 11:53:11 -07:00
2012-05-30 08:49:28 -07:00
2012-05-31 12:02:41 -07:00
2012-05-26 13:05:55 -07:00
2012-05-16 12:46:37 -04:00
2012-05-26 12:42:29 -07:00
2012-06-01 16:57:51 -07:00
2012-05-26 12:42:29 -07:00
2012-05-22 16:34:21 -07:00
2012-05-26 12:22:27 -07:00