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/input.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/input.c')
-rw-r--r-- | drivers/input/input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index 54109c33e36c..e1243b4b32a5 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -227,12 +227,12 @@ static void input_handle_event(struct input_dev *dev, | |||
227 | 227 | ||
228 | case SYN_REPORT: | 228 | case SYN_REPORT: |
229 | if (!dev->sync) { | 229 | if (!dev->sync) { |
230 | dev->sync = 1; | 230 | dev->sync = true; |
231 | disposition = INPUT_PASS_TO_HANDLERS; | 231 | disposition = INPUT_PASS_TO_HANDLERS; |
232 | } | 232 | } |
233 | break; | 233 | break; |
234 | case SYN_MT_REPORT: | 234 | case SYN_MT_REPORT: |
235 | dev->sync = 0; | 235 | dev->sync = false; |
236 | disposition = INPUT_PASS_TO_HANDLERS; | 236 | disposition = INPUT_PASS_TO_HANDLERS; |
237 | break; | 237 | break; |
238 | } | 238 | } |
@@ -317,7 +317,7 @@ static void input_handle_event(struct input_dev *dev, | |||
317 | } | 317 | } |
318 | 318 | ||
319 | if (disposition != INPUT_IGNORE_EVENT && type != EV_SYN) | 319 | if (disposition != INPUT_IGNORE_EVENT && type != EV_SYN) |
320 | dev->sync = 0; | 320 | dev->sync = false; |
321 | 321 | ||
322 | if ((disposition & INPUT_PASS_TO_DEVICE) && dev->event) | 322 | if ((disposition & INPUT_PASS_TO_DEVICE) && dev->event) |
323 | dev->event(dev, type, code, value); | 323 | dev->event(dev, type, code, value); |