toshiba_acpi: make one-bit bitfields unsigned
authorDan Carpenter <dan.carpenter@oracle.com>
Sun, 15 Jan 2012 11:28:20 +0000 (14:28 +0300)
committerMatthew Garrett <mjg@redhat.com>
Tue, 20 Mar 2012 16:02:22 +0000 (12:02 -0400)
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>
drivers/platform/x86/toshiba_acpi.c

index dcdc1f4a4624d782d35f3776d1a69bbfdf983cdb..eab5e11fb41fb3fffcefd9f6f05fa9a3ca2da570 100644 (file)
@@ -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;
 };