git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
drivers
/
acpi
/
ac.c
diff --git
a/drivers/acpi/ac.c
b/drivers/acpi/ac.c
index
11abc7b
..
6daeace
100644
(file)
--- a/
drivers/acpi/ac.c
+++ b/
drivers/acpi/ac.c
@@
-109,7
+109,7
@@
static struct proc_dir_entry *acpi_ac_dir;
static int acpi_ac_seq_show(struct seq_file *seq, void *offset)
{
static int acpi_ac_seq_show(struct seq_file *seq, void *offset)
{
- struct acpi_ac *ac =
(struct acpi_ac *)
seq->private;
+ struct acpi_ac *ac = seq->private;
if (!ac)
if (!ac)
@@
-187,7
+187,7
@@
static int acpi_ac_remove_fs(struct acpi_device *device)
static void acpi_ac_notify(acpi_handle handle, u32 event, void *data)
{
static void acpi_ac_notify(acpi_handle handle, u32 event, void *data)
{
- struct acpi_ac *ac =
(struct acpi_ac *)
data;
+ struct acpi_ac *ac = data;
struct acpi_device *device = NULL;
struct acpi_device *device = NULL;
@@
-221,10
+221,9
@@
static int acpi_ac_add(struct acpi_device *device)
if (!device)
return -EINVAL;
if (!device)
return -EINVAL;
- ac = k
m
alloc(sizeof(struct acpi_ac), GFP_KERNEL);
+ ac = k
z
alloc(sizeof(struct acpi_ac), GFP_KERNEL);
if (!ac)
return -ENOMEM;
if (!ac)
return -ENOMEM;
- memset(ac, 0, sizeof(struct acpi_ac));
ac->device = device;
strcpy(acpi_device_name(device), ACPI_AC_DEVICE_NAME);
ac->device = device;
strcpy(acpi_device_name(device), ACPI_AC_DEVICE_NAME);
@@
-269,7
+268,7
@@
static int acpi_ac_remove(struct acpi_device *device, int type)
if (!device || !acpi_driver_data(device))
return -EINVAL;
if (!device || !acpi_driver_data(device))
return -EINVAL;
- ac =
(struct acpi_ac *)
acpi_driver_data(device);
+ ac = acpi_driver_data(device);
status = acpi_remove_notify_handler(device->handle,
ACPI_ALL_NOTIFY, acpi_ac_notify);
status = acpi_remove_notify_handler(device->handle,
ACPI_ALL_NOTIFY, acpi_ac_notify);