aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/toshiba_acpi.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-09-22 17:37:29 -0400
committerLen Brown <len.brown@intel.com>2008-10-10 18:05:53 -0400
commit9e113e0014204bfb44a2baa29b2a141ede41b074 (patch)
tree7585a62864913163cbf33a974df8708b1be4e489 /drivers/acpi/toshiba_acpi.c
parent4b5fcb353ba46adfa2f98546e3d34e7dc65221cb (diff)
ACPI: toshiba_acpi.c fix sparse signedness mismatch warnings
set_bit expects unsigned int, and we start with a u32 anyway. drivers/acpi/toshiba_acpi.c:397:14: warning: incorrect type in argument 1 (different signedness) drivers/acpi/toshiba_acpi.c:397:14: expected unsigned int [usertype] *word drivers/acpi/toshiba_acpi.c:397:14: got int *<noident> drivers/acpi/toshiba_acpi.c:399:14: warning: incorrect type in argument 1 (different signedness) drivers/acpi/toshiba_acpi.c:399:14: expected unsigned int [usertype] *word drivers/acpi/toshiba_acpi.c:399:14: got int *<noident> drivers/acpi/toshiba_acpi.c:401:14: warning: incorrect type in argument 1 (different signedness) drivers/acpi/toshiba_acpi.c:401:14: expected unsigned int [usertype] *word drivers/acpi/toshiba_acpi.c:401:14: got int *<noident> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/toshiba_acpi.c')
-rw-r--r--drivers/acpi/toshiba_acpi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/toshiba_acpi.c b/drivers/acpi/toshiba_acpi.c
index 0a43c8e0eff3..4172d290f275 100644
--- a/drivers/acpi/toshiba_acpi.c
+++ b/drivers/acpi/toshiba_acpi.c
@@ -392,7 +392,7 @@ static unsigned long write_video(const char *buffer, unsigned long count)
392 392
393 hci_read1(HCI_VIDEO_OUT, &video_out, &hci_result); 393 hci_read1(HCI_VIDEO_OUT, &video_out, &hci_result);
394 if (hci_result == HCI_SUCCESS) { 394 if (hci_result == HCI_SUCCESS) {
395 int new_video_out = video_out; 395 unsigned int new_video_out = video_out;
396 if (lcd_out != -1) 396 if (lcd_out != -1)
397 _set_bit(&new_video_out, HCI_VIDEO_OUT_LCD, lcd_out); 397 _set_bit(&new_video_out, HCI_VIDEO_OUT_LCD, lcd_out);
398 if (crt_out != -1) 398 if (crt_out != -1)