staging: comedi: ni_stc.h: remove unused members from struct ni_private
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 29 May 2014 17:56:31 +0000 (10:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 21:56:44 +0000 (14:56 -0700)
Remove all the unsed members from the private data for the ni mio drivers.

The ao0p and ao1p members are only used in the ni_ao_reset() function and
the code is commented out. Remove them, and the commented out code, as well.

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/ni_mio_common.c
drivers/staging/comedi/drivers/ni_stc.h

index 68cd92bf17c62bfd123901de9327f132829cc63e..45c42089f690e93f9327d53382215962d84a1805 100644 (file)
@@ -3136,12 +3136,6 @@ static int ni_ao_reset(struct comedi_device *dev, struct comedi_subdevice *s)
        const struct ni_board_struct *board = comedi_board(dev);
        struct ni_private *devpriv = dev->private;
 
-       /* devpriv->ao0p=0x0000; */
-       /* ni_writew(devpriv->ao0p,AO_Configuration); */
-
-       /* devpriv->ao1p=AO_Channel(1); */
-       /* ni_writew(devpriv->ao1p,AO_Configuration); */
-
        ni_release_ao_mite_channel(dev);
 
        devpriv->stc_writew(dev, AO_Configuration_Start, Joint_Reset_Register);
index a09f3cd48923fb20072fec50962322073df649d7..1cc035ba9c93aa170164db132f879265769e1751 100644 (file)
@@ -1428,15 +1428,8 @@ struct ni_private {
 
        unsigned short dio_output;
        unsigned short dio_control;
-       int ao0p, ao1p;
-       int lastchan;
-       int last_do;
-       int rt_irq;
-       int irqmask;
        int aimode;
        int ai_continuous;
-       int blocksize;
-       int n_left;
        unsigned int ai_calib_source;
        unsigned int ai_calib_source_enabled;
        spinlock_t window_lock;
@@ -1458,7 +1451,6 @@ struct ni_private {
        unsigned short ao_mode3;
        unsigned short ao_cmd1;
        unsigned short ao_cmd2;
-       unsigned short ao_cmd3;
        unsigned short ao_trigger_select;
 
        struct ni_gpct_device *counter_dev;