1. 20 Jul, 2014 1 commit
  2. 31 Dec, 2013 1 commit
  3. 16 Dec, 2013 1 commit
  4. 31 Oct, 2013 1 commit
  5. 06 Oct, 2013 1 commit
  6. 09 Jan, 2013 1 commit
  7. 08 Nov, 2012 1 commit
    • Dmitry Torokhov's avatar
      Input: introduce managed input devices (add devres support) · 2be975c6
      Dmitry Torokhov authored
      
      There is a demand from driver's writers to use managed devices framework
      for their drivers. Unfortunately up to this moment input devices did not
      provide support for managed devices and that lead to mixing two styles
      of resource management which usually introduced more bugs, such as
      manually unregistering input device but relying in devres to free
      interrupt handler which (unless device is properly shut off) can cause
      ISR to reference already freed memory.
      
      This change introduces devm_input_allocate_device() that will allocate
      managed instance of input device so that driver writers who prefer
      using devm_* framework do not have to mix 2 styles.
      Reviewed-by: default avatarHenrik Rydberg <rydberg@euromail.se>
      Reviewed-by: default avatarTejun Heo <tj@kernel.org>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      2be975c6
  8. 25 Oct, 2012 1 commit
  9. 08 Oct, 2012 1 commit
  10. 19 Sep, 2012 5 commits
  11. 22 Aug, 2012 1 commit
  12. 02 Feb, 2012 1 commit
  13. 04 Jan, 2012 1 commit
  14. 25 May, 2011 1 commit
  15. 12 May, 2011 1 commit
  16. 18 Apr, 2011 1 commit
  17. 03 Feb, 2011 1 commit
  18. 01 Feb, 2011 1 commit
  19. 20 Dec, 2010 2 commits
    • Henrik Rydberg's avatar
      Input: fix double equality sign in uevent · fcd3027a
      Henrik Rydberg authored
      
      Looking at the uevent stream for input devices, all properties are on
      the form "A=B" except the bitmap values, which are on the form
      "A==B". This bug has been around at least since 2007, and the input
      uevent code has been untouched since. The recent addition of device
      properties suggests this is a good time for a remedy.
      Acked-by: default avatarDmitry Torokhov <dtor@mail.ru>
      Signed-off-by: default avatarHenrik Rydberg <rydberg@euromail.se>
      fcd3027a
    • Henrik Rydberg's avatar
      Input: introduce device properties · 85b77200
      Henrik Rydberg authored
      
      Today, userspace sets up an input device based on the data it emits.
      This is not always enough; a tablet and a touchscreen may emit exactly
      the same data, for instance, but the former should be set up with a
      pointer whereas the latter does not need to. Recently, a new type of
      touchpad has emerged where the buttons are under the pad, which
      changes logic without changing the emitted data. This patch introduces
      a new ioctl, EVIOCGPROP, which enables user access to a set of device
      properties useful during setup. The properties are given as a bitmap
      in the same fashion as the event types, and are also made available
      via sysfs, uevent and /proc/bus/input/devices.
      Acked-by: default avatarPing Cheng <pingc@wacom.com>
      Acked-by: default avatarChase Douglas <chase.douglas@canonical.com>
      Acked-by: default avatarDmitry Torokhov <dtor@mail.ru>
      Signed-off-by: default avatarHenrik Rydberg <rydberg@euromail.se>
      85b77200
  20. 16 Dec, 2010 1 commit
  21. 01 Dec, 2010 1 commit
  22. 18 Nov, 2010 1 commit
  23. 17 Nov, 2010 1 commit
  24. 11 Nov, 2010 1 commit
  25. 03 Nov, 2010 1 commit
  26. 15 Oct, 2010 1 commit
    • Arnd Bergmann's avatar
      llseek: automatically add .llseek fop · 6038f373
      Arnd Bergmann authored
      All file_operations should get a .llseek operation so we can make
      nonseekable_open the default for future file operations without a
      .llseek pointer.
      
      The three cases that we can automatically detect are no_llseek, seq_lseek
      and default_llseek. For cases where we can we can automatically prove that
      the file offset is always ignored, we use noop_llseek, which maintains
      the current behavior of not returning an error from a seek.
      
      New drivers should normally not use noop_llseek but instead use no_llseek
      and call nonseekable_open at open time.  Existing drivers can be converted
      to do the same when the maintainer knows for certain that no user code
      relies on calling seek on the device file.
      
      The generated code is often incorrectly indented and right now contains
      comments that clarify for each added line why a specific variant was
      chosen. In the version that gets submitted upstream, the comments will
      be gone and I will manually fix the indentation, because there does not
      see...
      6038f373
  27. 10 Sep, 2010 1 commit
    • Mauro Carvalho Chehab's avatar
      Input: add support for large scancodes · 8613e4c2
      Mauro Carvalho Chehab authored
      
      Several devices use a high number of bits for scancodes. One important
      group is the Remote Controllers. Some new protocols like RC-6 define a
      scancode space of 64 bits.
      
      The current EVIO[CS]GKEYCODE ioctls allow replace the scancode/keycode
      translation tables, but it is limited to up to 32 bits for scancode.
      
      Also, if userspace wants to clean the existing table, replacing it by
      a new one, it needs to run a loop calling the ioctls over the entire
      sparse scancode space.
      
      To solve those problems, this patch extends the ioctls to allow drivers
      handle scancodes up to 32 bytes long (the length could be extended in
      the future should such need arise) and allow userspace to query and set
      scancode to keycode mappings not only by scancode but also by index.
      
      Compatibility code were also added to handle the old format of
      EVIO[CS]GKEYCODE ioctls.
      
      Folded fixes by:
      - Dan Carpenter: locking fixes for the original implementation
      - Jarod Wilson: fix crash when setting keycode and wiring up get/set
                      handlers in original implementation.
      - Dmitry Torokhov: rework to consolidate old and new scancode handling,
                         provide options to act either by index or scancode.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
      Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
      Signed-off-by: default avatarJarod Wilson <jarod@redhat.com>
      Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
      8613e4c2
  28. 05 Sep, 2010 1 commit
  29. 29 Aug, 2010 1 commit
  30. 03 Aug, 2010 2 commits
  31. 16 Jul, 2010 2 commits
  32. 14 Jul, 2010 1 commit
  33. 03 Jul, 2010 1 commit