diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-07-16 02:27:36 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-07-16 02:52:33 -0400 |
commit | 20da92de8ec3c1d4ba7e5aca322d38b6ce634932 (patch) | |
tree | 2349309cc452763e649c75f94bf00c327376f8d2 /drivers/input/mousedev.c | |
parent | 72c8a94a585afea1f45aa8c4f6938ed6d05be57a (diff) |
Input: change input handlers to use bool when possible
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mousedev.c')
-rw-r--r-- | drivers/input/mousedev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c index f34b22bce4ff..d7a7a2fce745 100644 --- a/drivers/input/mousedev.c +++ b/drivers/input/mousedev.c | |||
@@ -57,7 +57,6 @@ struct mousedev_hw_data { | |||
57 | }; | 57 | }; |
58 | 58 | ||
59 | struct mousedev { | 59 | struct mousedev { |
60 | int exist; | ||
61 | int open; | 60 | int open; |
62 | int minor; | 61 | int minor; |
63 | struct input_handle handle; | 62 | struct input_handle handle; |
@@ -66,6 +65,7 @@ struct mousedev { | |||
66 | spinlock_t client_lock; /* protects client_list */ | 65 | spinlock_t client_lock; /* protects client_list */ |
67 | struct mutex mutex; | 66 | struct mutex mutex; |
68 | struct device dev; | 67 | struct device dev; |
68 | bool exist; | ||
69 | 69 | ||
70 | struct list_head mixdev_node; | 70 | struct list_head mixdev_node; |
71 | int mixdev_open; | 71 | int mixdev_open; |
@@ -802,7 +802,7 @@ static void mousedev_remove_chrdev(struct mousedev *mousedev) | |||
802 | static void mousedev_mark_dead(struct mousedev *mousedev) | 802 | static void mousedev_mark_dead(struct mousedev *mousedev) |
803 | { | 803 | { |
804 | mutex_lock(&mousedev->mutex); | 804 | mutex_lock(&mousedev->mutex); |
805 | mousedev->exist = 0; | 805 | mousedev->exist = false; |
806 | mutex_unlock(&mousedev->mutex); | 806 | mutex_unlock(&mousedev->mutex); |
807 | } | 807 | } |
808 | 808 | ||
@@ -862,7 +862,7 @@ static struct mousedev *mousedev_create(struct input_dev *dev, | |||
862 | dev_set_name(&mousedev->dev, "mouse%d", minor); | 862 | dev_set_name(&mousedev->dev, "mouse%d", minor); |
863 | 863 | ||
864 | mousedev->minor = minor; | 864 | mousedev->minor = minor; |
865 | mousedev->exist = 1; | 865 | mousedev->exist = true; |
866 | mousedev->handle.dev = input_get_device(dev); | 866 | mousedev->handle.dev = input_get_device(dev); |
867 | mousedev->handle.name = dev_name(&mousedev->dev); | 867 | mousedev->handle.name = dev_name(&mousedev->dev); |
868 | mousedev->handle.handler = handler; | 868 | mousedev->handle.handler = handler; |