Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
authorLinus Torvalds <torvalds@linux-foundation.org>
Sat, 19 Dec 2015 17:51:11 +0000 (09:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 19 Dec 2015 17:51:11 +0000 (09:51 -0800)
Pull input fixes from Dmitry Torokhov:
 "Just a few assorted driver fixes"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
  Input: elants_i2c - fix wake-on-touch
  Input: elan_i2c - set input device's vendor and product IDs
  Input: sun4i-lradc-keys - fix typo in binding documentation
  Input: atmel_mxt_ts - add maxtouch to I2C table for module autoload
  Input: arizona-haptic - fix disabling of haptics device
  Input: aiptek - fix crash on detecting device without endpoints
  Input: atmel_mxt_ts - add generic platform data for Chromebooks
  Input: parkbd - clear unused function pointers
  Input: walkera0701 - clear unused function pointers
  Input: turbografx - clear unused function pointers
  Input: gamecon - clear unused function pointers
  Input: db9 - clear unused function pointers

1  2 
drivers/input/joystick/walkera0701.c

index 9c07fe911075f3e1dba089f07d7d60d10ac327ba,413e343f55f7c5466befe284c8fc92709127acae..70a893a17467608a103a81546eb7cce4cdf44010
@@@ -150,7 -150,7 +150,7 @@@ static void walkera0701_irq_handler(voi
                if (w->counter == 24) { /* full frame */
                        walkera0701_parse_frame(w);
                        w->counter = NO_SYNC;
 -                      if (abs64(pulse_time - SYNC_PULSE) < RESERVE)   /* new frame sync */
 +                      if (abs(pulse_time - SYNC_PULSE) < RESERVE)     /* new frame sync */
                                w->counter = 0;
                } else {
                        if ((pulse_time > (ANALOG_MIN_PULSE - RESERVE)
                        } else
                                w->counter = NO_SYNC;
                }
 -      } else if (abs64(pulse_time - SYNC_PULSE - BIN0_PULSE) <
 +      } else if (abs(pulse_time - SYNC_PULSE - BIN0_PULSE) <
                                RESERVE + BIN1_PULSE - BIN0_PULSE)      /* frame sync .. */
                w->counter = 0;
  
@@@ -218,6 -218,7 +218,7 @@@ static void walkera0701_attach(struct p
  
        w->parport = pp;
  
+       memset(&walkera0701_parport_cb, 0, sizeof(walkera0701_parport_cb));
        walkera0701_parport_cb.flags = PARPORT_FLAG_EXCL;
        walkera0701_parport_cb.irq_func = walkera0701_irq_handler;
        walkera0701_parport_cb.private = w;