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: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
25ad998892
commit
d5f81755d6
1 changed files with 4 additions and 4 deletions
|
@ -130,10 +130,10 @@ static const struct pcmuio_board pcmuio_boards[] = {
|
||||||
struct pcmuio_asic {
|
struct pcmuio_asic {
|
||||||
spinlock_t pagelock; /* protects the page registers */
|
spinlock_t pagelock; /* protects the page registers */
|
||||||
spinlock_t spinlock; /* protects member variables */
|
spinlock_t spinlock; /* protects 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 pcmuio_private {
|
struct pcmuio_private {
|
||||||
|
|
Loading…
Add table
Reference in a new issue