提交 50a4da89 编写于 作者: B Bjorn Helgaas 提交者: Len Brown

ACPI: button: whitespace changes

This patch changes a bit of whitespace to follow Linux conventions.
Signed-off-by: NBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 577c9c45
/* /*
* acpi_button.c - ACPI Button Driver ($Revision: 30 $) * button.c - ACPI Button Driver
* *
* Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com> * Copyright (C) 2001, 2002 Andy Grover <andrew.grover@intel.com>
* Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com> * Copyright (C) 2001, 2002 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
...@@ -133,7 +133,6 @@ static int acpi_button_info_seq_show(struct seq_file *seq, void *offset) ...@@ -133,7 +133,6 @@ static int acpi_button_info_seq_show(struct seq_file *seq, void *offset)
seq_printf(seq, "type: %s\n", seq_printf(seq, "type: %s\n",
acpi_device_name(button->device)); acpi_device_name(button->device));
return 0; return 0;
} }
...@@ -259,6 +258,7 @@ static int acpi_lid_send_state(struct acpi_button *button) ...@@ -259,6 +258,7 @@ static int acpi_lid_send_state(struct acpi_button *button)
&state); &state);
if (ACPI_FAILURE(status)) if (ACPI_FAILURE(status))
return -ENODEV; return -ENODEV;
/* input layer checks if event is redundant */ /* input layer checks if event is redundant */
input_report_switch(button->input, SW_LID, !state); input_report_switch(button->input, SW_LID, !state);
input_sync(button->input); input_sync(button->input);
...@@ -299,13 +299,12 @@ static void acpi_button_notify(struct acpi_device *device, u32 event) ...@@ -299,13 +299,12 @@ static void acpi_button_notify(struct acpi_device *device, u32 event)
"Unsupported event [0x%x]\n", event)); "Unsupported event [0x%x]\n", event));
break; break;
} }
return;
} }
static int acpi_button_resume(struct acpi_device *device) static int acpi_button_resume(struct acpi_device *device)
{ {
struct acpi_button *button; struct acpi_button *button;
if (!device) if (!device)
return -EINVAL; return -EINVAL;
button = acpi_driver_data(device); button = acpi_driver_data(device);
...@@ -424,7 +423,6 @@ static int acpi_button_add(struct acpi_device *device) ...@@ -424,7 +423,6 @@ static int acpi_button_add(struct acpi_device *device)
printk(KERN_INFO PREFIX "%s [%s]\n", printk(KERN_INFO PREFIX "%s [%s]\n",
acpi_device_name(device), acpi_device_bid(device)); acpi_device_name(device), acpi_device_bid(device));
return 0; return 0;
err_remove_fs: err_remove_fs:
...@@ -448,7 +446,6 @@ static int acpi_button_remove(struct acpi_device *device, int type) ...@@ -448,7 +446,6 @@ static int acpi_button_remove(struct acpi_device *device, int type)
acpi_button_remove_fs(device); acpi_button_remove_fs(device);
input_unregister_device(button->input); input_unregister_device(button->input);
kfree(button); kfree(button);
return 0; return 0;
} }
...@@ -459,6 +456,7 @@ static int __init acpi_button_init(void) ...@@ -459,6 +456,7 @@ static int __init acpi_button_init(void)
acpi_button_dir = proc_mkdir(ACPI_BUTTON_CLASS, acpi_root_dir); acpi_button_dir = proc_mkdir(ACPI_BUTTON_CLASS, acpi_root_dir);
if (!acpi_button_dir) if (!acpi_button_dir)
return -ENODEV; return -ENODEV;
result = acpi_bus_register_driver(&acpi_button_driver); result = acpi_bus_register_driver(&acpi_button_driver);
if (result < 0) { if (result < 0) {
remove_proc_entry(ACPI_BUTTON_CLASS, acpi_root_dir); remove_proc_entry(ACPI_BUTTON_CLASS, acpi_root_dir);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册