Commit 40202c73 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Small cleanups for input

From:  Pavel Machek <pavel@suse.cz>
parent 73b57a09
...@@ -45,9 +45,7 @@ static struct input_handler power_handler; ...@@ -45,9 +45,7 @@ static struct input_handler power_handler;
static int suspend_button_pushed = 0; static int suspend_button_pushed = 0;
static void suspend_button_task_handler(void *data) static void suspend_button_task_handler(void *data)
{ {
//extern void pm_do_suspend(void);
udelay(200); /* debounce */ udelay(200); /* debounce */
//pm_do_suspend();
suspend_button_pushed = 0; suspend_button_pushed = 0;
} }
...@@ -67,8 +65,6 @@ static void power_event(struct input_handle *handle, unsigned int type, ...@@ -67,8 +65,6 @@ static void power_event(struct input_handle *handle, unsigned int type,
case KEY_SUSPEND: case KEY_SUSPEND:
printk("Powering down entire device\n"); printk("Powering down entire device\n");
//pm_send_all(PM_SUSPEND, dev);
if (!suspend_button_pushed) { if (!suspend_button_pushed) {
suspend_button_pushed = 1; suspend_button_pushed = 1;
schedule_work(&suspend_button_task); schedule_work(&suspend_button_task);
......
...@@ -18,10 +18,7 @@ ...@@ -18,10 +18,7 @@
#include <linux/list.h> #include <linux/list.h>
struct serio;
struct serio { struct serio {
void *private; void *private;
void *driver; void *driver;
char *name; char *name;
...@@ -45,7 +42,6 @@ struct serio { ...@@ -45,7 +42,6 @@ struct serio {
}; };
struct serio_dev { struct serio_dev {
void *private; void *private;
char *name; char *name;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment