diff options
| -rw-r--r-- | drivers/acpi/ac.c | 6 | ||||
| -rw-r--r-- | drivers/acpi/acpi_memhotplug.c | 2 | ||||
| -rw-r--r-- | drivers/acpi/asus_acpi.c | 7 | ||||
| -rw-r--r-- | drivers/acpi/battery.c | 22 | ||||
| -rw-r--r-- | drivers/acpi/container.c | 2 | ||||
| -rw-r--r-- | drivers/acpi/dock.c | 6 | ||||
| -rw-r--r-- | drivers/acpi/fan.c | 6 | ||||
| -rw-r--r-- | drivers/acpi/glue.c | 4 | ||||
| -rw-r--r-- | drivers/acpi/hotkey.c | 5 | ||||
| -rw-r--r-- | drivers/acpi/i2c_ec.c | 2 | ||||
| -rw-r--r-- | drivers/acpi/ibm_acpi.c | 6 | ||||
| -rw-r--r-- | drivers/acpi/numa.c | 2 | ||||
| -rw-r--r-- | drivers/acpi/osl.c | 3 | ||||
| -rw-r--r-- | drivers/acpi/pci_bind.c | 4 | ||||
| -rw-r--r-- | drivers/acpi/pci_irq.c | 2 | ||||
| -rw-r--r-- | drivers/acpi/pci_link.c | 8 | ||||
| -rw-r--r-- | drivers/acpi/pci_root.c | 4 | ||||
| -rw-r--r-- | drivers/acpi/power.c | 6 | ||||
| -rw-r--r-- | drivers/acpi/processor_core.c | 10 | ||||
| -rw-r--r-- | drivers/acpi/processor_idle.c | 14 | ||||
| -rw-r--r-- | drivers/acpi/processor_perflib.c | 10 | ||||
| -rw-r--r-- | drivers/acpi/processor_thermal.c | 6 | ||||
| -rw-r--r-- | drivers/acpi/processor_throttling.c | 6 | ||||
| -rw-r--r-- | drivers/acpi/sbs.c | 24 | ||||
| -rw-r--r-- | drivers/acpi/tables.c | 2 | ||||
| -rw-r--r-- | drivers/acpi/thermal.c | 30 | ||||
| -rw-r--r-- | drivers/acpi/utils.c | 4 | ||||
| -rw-r--r-- | drivers/acpi/video.c | 59 |
28 files changed, 128 insertions, 134 deletions
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index 11abc7bf777e..46e58663dcb5 100644 --- a/drivers/acpi/ac.c +++ b/drivers/acpi/ac.c | |||
| @@ -109,7 +109,7 @@ static struct proc_dir_entry *acpi_ac_dir; | |||
| 109 | 109 | ||
| 110 | static int acpi_ac_seq_show(struct seq_file *seq, void *offset) | 110 | static int acpi_ac_seq_show(struct seq_file *seq, void *offset) |
| 111 | { | 111 | { |
| 112 | struct acpi_ac *ac = (struct acpi_ac *)seq->private; | 112 | struct acpi_ac *ac = seq->private; |
| 113 | 113 | ||
| 114 | 114 | ||
| 115 | if (!ac) | 115 | if (!ac) |
| @@ -187,7 +187,7 @@ static int acpi_ac_remove_fs(struct acpi_device *device) | |||
| 187 | 187 | ||
| 188 | static void acpi_ac_notify(acpi_handle handle, u32 event, void *data) | 188 | static void acpi_ac_notify(acpi_handle handle, u32 event, void *data) |
| 189 | { | 189 | { |
| 190 | struct acpi_ac *ac = (struct acpi_ac *)data; | 190 | struct acpi_ac *ac = data; |
| 191 | struct acpi_device *device = NULL; | 191 | struct acpi_device *device = NULL; |
| 192 | 192 | ||
| 193 | 193 | ||
| @@ -269,7 +269,7 @@ static int acpi_ac_remove(struct acpi_device *device, int type) | |||
| 269 | if (!device || !acpi_driver_data(device)) | 269 | if (!device || !acpi_driver_data(device)) |
| 270 | return -EINVAL; | 270 | return -EINVAL; |
| 271 | 271 | ||
| 272 | ac = (struct acpi_ac *)acpi_driver_data(device); | 272 | ac = acpi_driver_data(device); |
| 273 | 273 | ||
| 274 | status = acpi_remove_notify_handler(device->handle, | 274 | status = acpi_remove_notify_handler(device->handle, |
| 275 | ACPI_ALL_NOTIFY, acpi_ac_notify); | 275 | ACPI_ALL_NOTIFY, acpi_ac_notify); |
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c index 6bcd9e8e7bcb..150112ae48ed 100644 --- a/drivers/acpi/acpi_memhotplug.c +++ b/drivers/acpi/acpi_memhotplug.c | |||
| @@ -429,7 +429,7 @@ static int acpi_memory_device_remove(struct acpi_device *device, int type) | |||
| 429 | if (!device || !acpi_driver_data(device)) | 429 | if (!device || !acpi_driver_data(device)) |
| 430 | return -EINVAL; | 430 | return -EINVAL; |
| 431 | 431 | ||
| 432 | mem_device = (struct acpi_memory_device *)acpi_driver_data(device); | 432 | mem_device = acpi_driver_data(device); |
| 433 | kfree(mem_device); | 433 | kfree(mem_device); |
| 434 | 434 | ||
| 435 | return 0; | 435 | return 0; |
diff --git a/drivers/acpi/asus_acpi.c b/drivers/acpi/asus_acpi.c index bf7bc25e680e..bfae3ffff13c 100644 --- a/drivers/acpi/asus_acpi.c +++ b/drivers/acpi/asus_acpi.c | |||
| @@ -1146,7 +1146,7 @@ static int asus_hotk_get_info(void) | |||
| 1146 | if (ACPI_FAILURE(status)) | 1146 | if (ACPI_FAILURE(status)) |
| 1147 | printk(KERN_WARNING " Couldn't get the DSDT table header\n"); | 1147 | printk(KERN_WARNING " Couldn't get the DSDT table header\n"); |
| 1148 | else | 1148 | else |
| 1149 | asus_info = (struct acpi_table_header *)dsdt.pointer; | 1149 | asus_info = dsdt.pointer; |
| 1150 | 1150 | ||
| 1151 | /* We have to write 0 on init this far for all ASUS models */ | 1151 | /* We have to write 0 on init this far for all ASUS models */ |
| 1152 | if (!write_acpi_int(hotk->handle, "INIT", 0, &buffer)) { | 1152 | if (!write_acpi_int(hotk->handle, "INIT", 0, &buffer)) { |
| @@ -1168,7 +1168,7 @@ static int asus_hotk_get_info(void) | |||
| 1168 | * asus_model_match() and try something completely different. | 1168 | * asus_model_match() and try something completely different. |
| 1169 | */ | 1169 | */ |
| 1170 | if (buffer.pointer) { | 1170 | if (buffer.pointer) { |
| 1171 | model = (union acpi_object *)buffer.pointer; | 1171 | model = buffer.pointer; |
| 1172 | switch (model->type) { | 1172 | switch (model->type) { |
| 1173 | case ACPI_TYPE_STRING: | 1173 | case ACPI_TYPE_STRING: |
| 1174 | string = model->string.pointer; | 1174 | string = model->string.pointer; |
| @@ -1264,8 +1264,7 @@ static int asus_hotk_add(struct acpi_device *device) | |||
| 1264 | printk(KERN_NOTICE "Asus Laptop ACPI Extras version %s\n", | 1264 | printk(KERN_NOTICE "Asus Laptop ACPI Extras version %s\n", |
| 1265 | ASUS_ACPI_VERSION); | 1265 | ASUS_ACPI_VERSION); |
| 1266 | 1266 | ||
| 1267 | hotk = | 1267 | hotk = kmalloc(sizeof(struct asus_hotk), GFP_KERNEL); |
| 1268 | (struct asus_hotk *)kmalloc(sizeof(struct asus_hotk), GFP_KERNEL); | ||
| 1269 | if (!hotk) | 1268 | if (!hotk) |
| 1270 | return -ENOMEM; | 1269 | return -ENOMEM; |
| 1271 | memset(hotk, 0, sizeof(struct asus_hotk)); | 1270 | memset(hotk, 0, sizeof(struct asus_hotk)); |
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 026e40755cdd..f47c78a10656 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c | |||
| @@ -149,7 +149,7 @@ acpi_battery_get_info(struct acpi_battery *battery, | |||
| 149 | return -ENODEV; | 149 | return -ENODEV; |
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | package = (union acpi_object *)buffer.pointer; | 152 | package = buffer.pointer; |
| 153 | 153 | ||
| 154 | /* Extract Package Data */ | 154 | /* Extract Package Data */ |
| 155 | 155 | ||
| @@ -179,7 +179,7 @@ acpi_battery_get_info(struct acpi_battery *battery, | |||
| 179 | kfree(buffer.pointer); | 179 | kfree(buffer.pointer); |
| 180 | 180 | ||
| 181 | if (!result) | 181 | if (!result) |
| 182 | (*bif) = (struct acpi_battery_info *)data.pointer; | 182 | (*bif) = data.pointer; |
| 183 | 183 | ||
| 184 | return result; | 184 | return result; |
| 185 | } | 185 | } |
| @@ -209,7 +209,7 @@ acpi_battery_get_status(struct acpi_battery *battery, | |||
| 209 | return -ENODEV; | 209 | return -ENODEV; |
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | package = (union acpi_object *)buffer.pointer; | 212 | package = buffer.pointer; |
| 213 | 213 | ||
| 214 | /* Extract Package Data */ | 214 | /* Extract Package Data */ |
| 215 | 215 | ||
| @@ -239,7 +239,7 @@ acpi_battery_get_status(struct acpi_battery *battery, | |||
| 239 | kfree(buffer.pointer); | 239 | kfree(buffer.pointer); |
| 240 | 240 | ||
| 241 | if (!result) | 241 | if (!result) |
| 242 | (*bst) = (struct acpi_battery_status *)data.pointer; | 242 | (*bst) = data.pointer; |
| 243 | 243 | ||
| 244 | return result; | 244 | return result; |
| 245 | } | 245 | } |
| @@ -334,7 +334,7 @@ static struct proc_dir_entry *acpi_battery_dir; | |||
| 334 | static int acpi_battery_read_info(struct seq_file *seq, void *offset) | 334 | static int acpi_battery_read_info(struct seq_file *seq, void *offset) |
| 335 | { | 335 | { |
| 336 | int result = 0; | 336 | int result = 0; |
| 337 | struct acpi_battery *battery = (struct acpi_battery *)seq->private; | 337 | struct acpi_battery *battery = seq->private; |
| 338 | struct acpi_battery_info *bif = NULL; | 338 | struct acpi_battery_info *bif = NULL; |
| 339 | char *units = "?"; | 339 | char *units = "?"; |
| 340 | 340 | ||
| @@ -418,7 +418,7 @@ static int acpi_battery_info_open_fs(struct inode *inode, struct file *file) | |||
| 418 | static int acpi_battery_read_state(struct seq_file *seq, void *offset) | 418 | static int acpi_battery_read_state(struct seq_file *seq, void *offset) |
| 419 | { | 419 | { |
| 420 | int result = 0; | 420 | int result = 0; |
| 421 | struct acpi_battery *battery = (struct acpi_battery *)seq->private; | 421 | struct acpi_battery *battery = seq->private; |
| 422 | struct acpi_battery_status *bst = NULL; | 422 | struct acpi_battery_status *bst = NULL; |
| 423 | char *units = "?"; | 423 | char *units = "?"; |
| 424 | 424 | ||
| @@ -494,7 +494,7 @@ static int acpi_battery_state_open_fs(struct inode *inode, struct file *file) | |||
| 494 | 494 | ||
| 495 | static int acpi_battery_read_alarm(struct seq_file *seq, void *offset) | 495 | static int acpi_battery_read_alarm(struct seq_file *seq, void *offset) |
| 496 | { | 496 | { |
| 497 | struct acpi_battery *battery = (struct acpi_ba | ||
