21 Jun 2012 04:25
[PATCH 06/12] staging: comedi: s626: remove forward declarations 4
H Hartley Sweeten <hartleys <at> visionengravers.com>
2012-06-21 02:25:49 GMT
2012-06-21 02:25:49 GMT
Move the DAC 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 | 488 +++++++++++++++++-----------------
1 file changed, 240 insertions(+), 248 deletions(-)
diff --git a/drivers/staging/comedi/drivers/s626.c b/drivers/staging/comedi/drivers/s626.c
index 5fcb43a..3cdb293 100644
--- a/drivers/staging/comedi/drivers/s626.c
+++ b/drivers/staging/comedi/drivers/s626.c
<at> <at> -213,12 +213,6 <at> <at> static int s626_dio_reset_irq(struct comedi_device *dev, unsigned int gruop,
static int s626_dio_clear_irq(struct comedi_device *dev);
static int s626_ns_to_timer(int *nanosec, int round_mode);
-/* internal routines */
-static void WriteTrimDAC(struct comedi_device *dev, uint8_t LogicalChan,
- uint8_t DacData);
-static void SetDAC(struct comedi_device *dev, uint16_t chan, short dacdata);
-static void SendDAC(struct comedi_device *dev, uint32_t val);
-
/* COUNTER OBJECT ------------------------------------------------ */
struct enc_private {
/* Pointers to functions that differ for A and B counters: */
<at> <at> -552,6 +546,246 <at> <at> static uint8_t I2Cread(struct comedi_device *dev, uint8_t addr)
return rtnval;
(Continue reading)
RSS Feed