1. 28 Dec, 2010 3 commits
  2. 23 Dec, 2010 2 commits
  3. 22 Dec, 2010 1 commit
  4. 21 Dec, 2010 2 commits
    • Henrik Rydberg's avatar
      Input: synaptics - add multi-finger and semi-mt support · fec6e525
      Henrik Rydberg authored
      The Synaptics 2.7 series of touchpads support a mode for reporting two
      sets of X/Y/Pressure data (advanced gesture mode). By default, these
      devices report only single finger data, depriving userspace of the
      nowadays ubiquitous two-finger scroll gesture.
      
      Enabling advanced gesture mode also enables the multi-finger report,
      although the device does not claim that capability. Up to three
      fingers can be reported this way.
      
      While two or three fingers are touching, the normal packet is
      prepended by a reduced finger packet of lower resolution. From the two
      packets (which do not represent the actual fingers), the bounding
      rectangle of the individual contacts can be extracted.  This
      information is sufficient to perform scaling gestures and a limited
      form of rotation gesture. The behavior has been coined semi-mt
      capability, and is signaled to userspace via the INPUT_PROP_SEMI_MT
      device property.
      
      Work to decode the advanced gesture packet: Takashi Iwai.
      Cleanup and testing of the original patch: Chase Douglas.
      Minor cleanup and testing: Chris Bagwell.
      Finalization and semi-mt support: Henrik Rydberg.
      
      Reported-by: Tobyn Bertram
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      Signed-off-by: default avatarChase Douglas <chase.douglas@canonical.com>
      Signed-off-by: default avatarChris Bagwell <chris@cnpbagwell.com>
      Acked-by: default avatarDmitry Torokhov <dtor@mail.ru>
      Signed-off-by: default avatarHenrik Rydberg <rydberg@euromail.se>
      fec6e525
    • Henrik Rydberg's avatar
      Input: synaptics - report clickpad property · c14890a8
      Henrik Rydberg authored
      With the new input property interface, it is possible to report the
      special quirks of a device using ioctl/sysfs. This patch sets up the
      device as a pointer, and reports the clickpad functionality via the
      INPUT_PROP_BUTTONPAD property.
      Acked-by: default avatarChase Douglas <chase.douglas@canonical.com>
      Signed-off-by: default avatarHenrik Rydberg <rydberg@euromail.se>
      c14890a8
  5. 20 Dec, 2010 3 commits
  6. 18 Dec, 2010 1 commit
  7. 16 Dec, 2010 16 commits
  8. 08 Dec, 2010 2 commits
  9. 01 Dec, 2010 3 commits
  10. 22 Nov, 2010 5 commits
  11. 20 Nov, 2010 1 commit
    • Jesper Juhl's avatar
      Input: serio HIL MLC - don't deref null, don't leak and return proper error · 39de5210
      Jesper Juhl authored
      While reviewing various users of kernel memory allocation functions I came
      across drivers/input/serio/hil_mlc.c::hil_mlc_register() and noticed that:
      
       - it calls kzalloc() but fails to check for a NULL return before use.
       - it makes several allocations and if one fails it doesn't free the
         previous ones.
       - It doesn't return -ENOMEM in the failed memory allocation case (it just
         crashes).
      
      This patch corrects all of the above and also reworks the only caller of
      this function that I could find
      (drivers/input/serio/hp_sdc_mlc.c::hp_sdc_mlc_out()) so that it now checks
      the return value of hil_mlc_register() and properly propagates it on
      failure and I also restructured the code to remove some labels and goto's
      to make it, IMHO nicer to read.
      Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
      Tested-by: default avatarHelge Deller <deller@gmx.de>
      Acked-by: default avatarHelge Deller <deller@gmx.de>
      Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
      39de5210
  12. 19 Nov, 2010 1 commit