Commit 23bafad0 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: pcmmio: cleanup the private data



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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f41520de
Loading
Loading
Loading
Loading
+4 −5
Original line number Original line Diff line number Diff line
@@ -189,12 +189,11 @@ static const struct comedi_lrange pcmmio_ao_ranges = {
struct pcmmio_private {
struct pcmmio_private {
	spinlock_t pagelock;	/* protects the page registers */
	spinlock_t pagelock;	/* protects the page registers */
	spinlock_t spinlock;	/* protects the member variables */
	spinlock_t spinlock;	/* protects the member variables */
	int enabled_mask;
	unsigned int enabled_mask;
	int active;
	unsigned int stop_count;
	int stop_count;
	unsigned int active:1;
	int continuous;
	unsigned int continuous:1;


	struct pcmmio_subdev_private *sprivs;
	unsigned int ao_readback[8];
	unsigned int ao_readback[8];
};
};