staging: comedi: pcmmio: cleanup the private data
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 9 Dec 2013 22:31:20 +0000 (15:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2013 18:02:14 +0000 (10:02 -0800)
Fix the types of some of the private data members. The 'enabled_mask' and
'stop_count' should be unsigned int values. The 'active' and 'continuous'
members are flags, change them to unsigned int bit fields.

Remove the 'sprivs' pointer. This should have been removed when the subdevice
private data was removed.

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/pcmmio.c

index 486fa69c4639112f0e645e2ec664071b08bdd209..f3cfe7b14adf216fadaf777f096d7a1b69487bce 100644 (file)
@@ -189,12 +189,11 @@ static const struct comedi_lrange pcmmio_ao_ranges = {
 struct pcmmio_private {
        spinlock_t pagelock;    /* protects the page registers */
        spinlock_t spinlock;    /* protects the member variables */
-       int enabled_mask;
-       int active;
-       int stop_count;
-       int continuous;
+       unsigned int enabled_mask;
+       unsigned int stop_count;
+       unsigned int active:1;
+       unsigned int continuous:1;
 
-       struct pcmmio_subdev_private *sprivs;
        unsigned int ao_readback[8];
 };