OSDN Git Service

staging: comedi: addi_common.h: remove subdevice callbacks from struct addi_board
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 14 Oct 2014 17:44:24 +0000 (10:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Oct 2014 07:48:53 +0000 (15:48 +0800)
None of the drivers that still include this header use the subdevice callbacks.
Remove all of them to reduce the bloat.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi-data/addi_common.h

index e2a3ffe..b757f46 100644 (file)
@@ -38,60 +38,6 @@ struct addi_board {
        int i_Timer;            /*    timer subdevice present or not */
        unsigned int ui_MinAcquisitiontimeNs;   /*  Minimum Acquisition in Nano secs */
        unsigned int ui_MinDelaytimeNs; /*  Minimum Delay in Nano secs */
-
-       /* interrupt and reset */
-       void (*interrupt)(int irq, void *d);
-       int (*reset)(struct comedi_device *);
-
-       /* Subdevice functions */
-
-       /* ANALOG INPUT */
-       int (*ai_config)(struct comedi_device *, struct comedi_subdevice *,
-                        struct comedi_insn *, unsigned int *);
-       int (*ai_read)(struct comedi_device *, struct comedi_subdevice *,
-                      struct comedi_insn *, unsigned int *);
-       int (*ai_write)(struct comedi_device *, struct comedi_subdevice *,
-                       struct comedi_insn *, unsigned int *);
-       int (*ai_bits)(struct comedi_device *, struct comedi_subdevice *,
-                      struct comedi_insn *, unsigned int *);
-       int (*ai_cmdtest)(struct comedi_device *, struct comedi_subdevice *,
-                         struct comedi_cmd *);
-       int (*ai_cmd)(struct comedi_device *, struct comedi_subdevice *);
-       int (*ai_cancel)(struct comedi_device *, struct comedi_subdevice *);
-
-       /* Analog Output */
-       int (*ao_write)(struct comedi_device *, struct comedi_subdevice *,
-                       struct comedi_insn *, unsigned int *);
-
-       /* Digital Input */
-       int (*di_config)(struct comedi_device *, struct comedi_subdevice *,
-                        struct comedi_insn *, unsigned int *);
-       int (*di_read)(struct comedi_device *, struct comedi_subdevice *,
-                      struct comedi_insn *, unsigned int *);
-       int (*di_write)(struct comedi_device *, struct comedi_subdevice *,
-                       struct comedi_insn *, unsigned int *);
-       int (*di_bits)(struct comedi_device *, struct comedi_subdevice *,
-                      struct comedi_insn *, unsigned int *);
-
-       /* Digital Output */
-       int (*do_config)(struct comedi_device *, struct comedi_subdevice *,
-                        struct comedi_insn *, unsigned int *);
-       int (*do_write)(struct comedi_device *, struct comedi_subdevice *,
-                       struct comedi_insn *, unsigned int *);
-       int (*do_bits)(struct comedi_device *, struct comedi_subdevice *,
-                      struct comedi_insn *, unsigned int *);
-       int (*do_read)(struct comedi_device *, struct comedi_subdevice *,
-                      struct comedi_insn *, unsigned int *);
-
-       /* TIMER */
-       int (*timer_config)(struct comedi_device *, struct comedi_subdevice *,
-                           struct comedi_insn *, unsigned int *);
-       int (*timer_write)(struct comedi_device *, struct comedi_subdevice *,
-                          struct comedi_insn *, unsigned int *);
-       int (*timer_read)(struct comedi_device *, struct comedi_subdevice *,
-                         struct comedi_insn *, unsigned int *);
-       int (*timer_bits)(struct comedi_device *, struct comedi_subdevice *,
-                         struct comedi_insn *, unsigned int *);
 };
 
 struct addi_private {