21 Jun 2012 04:26
[PATCH 07/12] staging: comedi: s626: remove forward declarations 5
H Hartley Sweeten <hartleys <at> visionengravers.com>
2012-06-21 02:26:11 GMT
2012-06-21 02:26:11 GMT
Move the irq set/reset/clear and ns_to_timer helper functions
up to remove the need for the forward declarations.
Signed-off-by: H Hartley Sweeten <hsweeten <at> visionengravers.com>
Cc: Ian Abbott <abbotti <at> mev.co.uk>
Cc: Frank Mori Hess <fmhess <at> users.sourceforge.net>
Cc: Greg Kroah-Hartman <gregkh <at> linuxfoundation.org>
---
drivers/staging/comedi/drivers/s626.c | 224 +++++++++++++++++-----------------
1 file changed, 109 insertions(+), 115 deletions(-)
diff --git a/drivers/staging/comedi/drivers/s626.c b/drivers/staging/comedi/drivers/s626.c
index 3cdb293..cc18bf0 100644
--- a/drivers/staging/comedi/drivers/s626.c
+++ b/drivers/staging/comedi/drivers/s626.c
<at> <at> -207,12 +207,6 <at> <at> static struct dio_private *dio_private_word[]={
#define devpriv ((struct s626_private *)dev->private)
#define diopriv ((struct dio_private *)s->private)
-static int s626_dio_set_irq(struct comedi_device *dev, unsigned int chan);
-static int s626_dio_reset_irq(struct comedi_device *dev, unsigned int gruop,
- unsigned int mask);
-static int s626_dio_clear_irq(struct comedi_device *dev);
-static int s626_ns_to_timer(int *nanosec, int round_mode);
-
/* COUNTER OBJECT ------------------------------------------------ */
struct enc_private {
/* Pointers to functions that differ for A and B counters: */
<at> <at> -803,6 +797,87 <at> <at> static unsigned int s626_ai_reg_to_uint(int data)
/* return 0; */
(Continue reading)
RSS Feed