summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/toshiba_acpi.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-01-15 14:28:20 +0300
committerMatthew Garrett <mjg@redhat.com>2012-03-20 12:02:22 -0400
commit592b746c55b63770da25148ea3b56ed463a596b2 (patch)
tree1e8e72d68755e43508ee3000dcd3c7968d40abb5 /drivers/platform/x86/toshiba_acpi.c
parent38db157d7b52a34be3e059d0bfa8ea9c9086105f (diff)
downloadlwn-592b746c55b63770da25148ea3b56ed463a596b2.tar.gz
lwn-592b746c55b63770da25148ea3b56ed463a596b2.zip
toshiba_acpi: make one-bit bitfields unsigned
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>
Diffstat (limited to 'drivers/platform/x86/toshiba_acpi.c')
-rw-r--r--drivers/platform/x86/toshiba_acpi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
index dcdc1f4a4624..eab5e11fb41f 100644
--- a/drivers/platform/x86/toshiba_acpi.c
+++ b/drivers/platform/x86/toshiba_acpi.c
@@ -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;
};