Skip to content

Commit

Permalink
toshiba_acpi: make one-bit bitfields unsigned
Browse files Browse the repository at this point in the history
This doesn't change how the code works, but it silences a Sparse
complaint:
drivers/platform/x86/toshiba_acpi.c:121:37: error: dubious one-bit signed bitfield

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
  • Loading branch information
Dan Carpenter authored and Matthew Garrett committed Mar 20, 2012
1 parent 38db157 commit 592b746
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/platform/x86/toshiba_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ struct toshiba_acpi_dev {
int last_key_event;
int key_event_valid;

int illumination_supported:1;
int video_supported:1;
int fan_supported:1;
int system_event_supported:1;
unsigned int illumination_supported:1;
unsigned int video_supported:1;
unsigned int fan_supported:1;
unsigned int system_event_supported:1;

struct mutex mutex;
};
Expand Down

0 comments on commit 592b746

Please sign in to comment.