1. 19 Sep, 2012 5 commits
  2. 02 Feb, 2012 1 commit
  3. 04 Jan, 2012 1 commit
  4. 25 May, 2011 1 commit
  5. 12 May, 2011 1 commit
  6. 18 Apr, 2011 1 commit
  7. 03 Feb, 2011 1 commit
  8. 01 Feb, 2011 1 commit
  9. 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
  10. 16 Dec, 2010 1 commit
  11. 01 Dec, 2010 1 commit
  12. 18 Nov, 2010 1 commit
  13. 17 Nov, 2010 1 commit
  14. 11 Nov, 2010 1 commit
  15. 03 Nov, 2010 1 commit
  16. 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
  17. 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
  18. 05 Sep, 2010 1 commit
  19. 29 Aug, 2010 1 commit
  20. 03 Aug, 2010 2 commits
  21. 16 Jul, 2010 2 commits
  22. 14 Jul, 2010 1 commit
  23. 03 Jul, 2010 1 commit
  24. 30 Mar, 2010 1 commit
    • Tejun Heo's avatar
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo authored
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        bloc...
      5a0e3ad6
  25. 22 Mar, 2010 1 commit
  26. 10 Mar, 2010 1 commit
  27. 09 Mar, 2010 1 commit
  28. 04 Feb, 2010 1 commit
  29. 30 Jan, 2010 1 commit
    • Dmitry Torokhov's avatar
      Input: implement input filters · ef7995f4
      Dmitry Torokhov authored
      
      Sometimes it is desirable to suppress certain events from reaching
      input handlers and thus user space. One such example is Mac mouse
      button emulation code which catches certain key presses and converts
      them into button clicks as if they were emitted by a virtual mouse.
      The original key press events should be completely suppressed,
      otherwise user space will be confused, and while keyboard driver
      does it on its own evdev is blissfully unaware of this arrangement.
      
      This patch adds notion of 'filter' to the standard input handlers,
      which may flag event as filtered thus preventing it from reaching
      other input handlers. Filters don't (nor will they ever) have a
      notion of priority relative to each other, input core will run all
      of them first and any one of them may mark event as filtered.
      
      This patch is inspired by similar patch by Matthew Garret but the
      implementation and intended usage are quite different.
      Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
      ef7995f4
  30. 29 Jan, 2010 1 commit
  31. 12 Jan, 2010 1 commit
  32. 06 Jan, 2010 2 commits