diff options
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); |