Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

staging: comedi: pcmuio: fix types of some private data variables



The 'enabled_mask' is a bit mask of the channels that are enabled
for interrupt detection and should be an unsigned int.

The 'stop_count' is a >= 0 value that is set by the unsigned int
cmd->stop_arg. Make it an unsigned int.

The 'active' and 'continuous' members are flags. Make them unsigned
int bit-fields to save a bit of space.

Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 25ad9988
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -130,10 +130,10 @@ static const struct pcmuio_board pcmuio_boards[] = {
struct pcmuio_asic {
	spinlock_t pagelock;	/* protects the page registers */
	spinlock_t spinlock;	/* protects 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 pcmuio_private {