diff options
author | Varun Wadekar <vwadekar@nvidia.com> | 2012-04-16 15:40:10 +0530 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2012-04-16 15:40:10 +0530 |
commit | e8f6f41055a98446bec1065db17c4c27da86fee6 (patch) | |
tree | 6ccf138a3bf76ee778aa901b6a5a2d51d5fa6dae /drivers/input | |
parent | 77b0a51b9de734af7591c1d3cffe37e795e4f142 (diff) |
input: evdev: remove duplicate suspend/resume functions
Change-Id: Ib49b64510bbf974b7d4e92021e4cefa7d8e088e5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/evdev.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index bd34e4425e0a..d7f2e3098823 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c @@ -697,35 +697,6 @@ static int evdev_handle_mt_request(struct input_dev *dev, return 0; } -static int evdev_enable_suspend_block(struct evdev *evdev, - struct evdev_client *client) -{ - if (client->use_wake_lock) - return 0; - - spin_lock_irq(&client->buffer_lock); - wake_lock_init(&client->wake_lock, WAKE_LOCK_SUSPEND, client->name); - client->use_wake_lock = true; - if (client->packet_head != client->tail) - wake_lock(&client->wake_lock); - spin_unlock_irq(&client->buffer_lock); - return 0; -} - -static int evdev_disable_suspend_block(struct evdev *evdev, - struct evdev_client *client) -{ - if (!client->use_wake_lock) - return 0; - - spin_lock_irq(&client->buffer_lock); - client->use_wake_lock = false; - wake_lock_destroy(&client->wake_lock); - spin_unlock_irq(&client->buffer_lock); - - return 0; -} - static long evdev_do_ioctl(struct file *file, unsigned int cmd, void __user *p, int compat_mode) { |