Skip to content

Commit

Permalink
staging: comedi: refactor pcmuio driver to remove forward declarations
Browse files Browse the repository at this point in the history
Refactor the switch_page and pcmuio_stop_intr functions to avoid
needing the forward declarations.

Move the module_init/module_exit routines and the associated
struct comedi_driver and other variables to the end of the source.
This is more typical of how other drivers are written and removes
the need for the forward declarations.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 30, 2012
1 parent b2bb98e commit 6b19f9c
Showing 1 changed file with 240 additions and 309 deletions.
Loading

0 comments on commit 6b19f9c

Please sign in to comment.