aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/evdev.c')
-rw-r--r--drivers/input/evdev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c
index fc5afbd78625..70c0eb52ca96 100644
--- a/drivers/input/evdev.c
+++ b/drivers/input/evdev.c
@@ -24,7 +24,6 @@
24#include "input-compat.h" 24#include "input-compat.h"
25 25
26struct evdev { 26struct evdev {
27 int exist;
28 int open; 27 int open;
29 int minor; 28 int minor;
30 struct input_handle handle; 29 struct input_handle handle;
@@ -34,6 +33,7 @@ struct evdev {
34 spinlock_t client_lock; /* protects client_list */ 33 spinlock_t client_lock; /* protects client_list */
35 struct mutex mutex; 34 struct mutex mutex;
36 struct device dev; 35 struct device dev;
36 bool exist;
37}; 37};
38 38
39struct evdev_client { 39struct evdev_client {
@@ -793,7 +793,7 @@ static void evdev_remove_chrdev(struct evdev *evdev)
793static void evdev_mark_dead(struct evdev *evdev) 793static void evdev_mark_dead(struct evdev *evdev)
794{ 794{
795 mutex_lock(&evdev->mutex); 795 mutex_lock(&evdev->mutex);
796 evdev->exist = 0; 796 evdev->exist = false;
797 mutex_unlock(&evdev->mutex); 797 mutex_unlock(&evdev->mutex);
798} 798}
799 799
@@ -842,7 +842,7 @@ static int evdev_connect(struct input_handler *handler, struct input_dev *dev,
842 init_waitqueue_head(&evdev->wait); 842 init_waitqueue_head(&evdev->wait);
843 843
844 dev_set_name(&evdev->dev, "event%d", minor); 844 dev_set_name(&evdev->dev, "event%d", minor);
845 evdev->exist = 1; 845 evdev->exist = true;
846 evdev->minor = minor; 846 evdev->minor = minor;
847 847
848 evdev->handle.dev = input_get_device(dev); 848 evdev->handle.dev = input_get_device(dev);