1. 12 1月, 2011 1 次提交
  2. 14 12月, 2010 1 次提交
  3. 10 12月, 2010 1 次提交
    • J
      HID: Add and use hid_<level>: dev_<level> equivalents · 4291ee30
      Joe Perches 提交于
      Neaten current uses of dev_<level> by adding and using
      hid specific hid_<level> macros.
      
      Convert existing uses of dev_<level> uses to hid_<level>.
      Convert hid-pidff printk uses to hid_<level>.
      
      Remove err_hid and use hid_err instead.
      
      Add missing newlines to logging messages where necessary.
      Coalesce format strings.
      
      Add and use pr_fmt(fmt) KBUILD_MODNAME ": " fmt
      
      Other miscellaneous changes:
      
      Add const struct hid_device * argument to hid-core functions
      extract() and implement() so hid_<level> can be used by them.
      Fix bad indentation in hid-core hid_input_field function
      that calls extract() function above.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      4291ee30
  4. 08 12月, 2010 1 次提交
  5. 02 12月, 2010 1 次提交
  6. 03 11月, 2010 1 次提交
  7. 15 10月, 2010 1 次提交
  8. 21 9月, 2010 1 次提交
  9. 16 9月, 2010 1 次提交
  10. 10 9月, 2010 1 次提交
  11. 10 8月, 2010 1 次提交
    • N
      HID: Add Tablet Pick -> BTN_STYLUS2 mapping · 50b63697
      Nikolai Kondrashov 提交于
      Many tablet input drivers use BTN_STYLUS2 code to report a second
      tablet stylus button. Yet, the generic HID input driver doesn't map it.
      Apparently, because there is no corresponding usage in the HID Usage Tables.
      
      This patch selects a compromise usage - "Tablet Pick" (0x46) to be mapped to
      BTN_STYLUS2. Some tablets use "Eraser" usage, but mapping it to a button
      wouldn't be entirely correct, because the specification says it may be "a
      pressure quantity".
      Signed-off-by: NNikolai Kondrashov <spbnick@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      50b63697
  12. 19 7月, 2010 1 次提交
  13. 14 7月, 2010 1 次提交
  14. 24 6月, 2010 1 次提交
  15. 09 3月, 2010 1 次提交
  16. 17 2月, 2010 1 次提交
  17. 09 2月, 2010 1 次提交
  18. 03 2月, 2010 1 次提交
  19. 04 1月, 2010 1 次提交
    • J
      HID: handle joysticks with large number of buttons · cf2f765f
      Jiri Kosina 提交于
      Current HID code doesn't properly handle HID joysticks which have
      larger number of buttons than what fits into current range reserved
      for BTN_JOYSTICK.
      
      One such joystick reported to not work properly is Saitek X52 Pro
      Flight System.
      
      We can't extend the range to fit more buttons in, because of backwards
      compatibility reasons.
      
      Therefore this patch introduces a new BTN_TRIGGER_HAPPY range, and
      uses these to map the buttons which are over BTN_JOYSTICK limit.
      
      Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> [for the input.h part]
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      cf2f765f
  20. 12 6月, 2009 1 次提交
    • J
      HID: use debugfs for report dumping descriptor · a635f9dd
      Jiri Kosina 提交于
      It is a little bit inconvenient for people who have some non-standard
      HID hardware (usually violating the HID specification) to have to
      recompile kernel with CONFIG_HID_DEBUG to be able to see kernel's perspective
      of the HID report descriptor and observe the parsed events. Plus the messages
      are then mixed up inconveniently with the rest of the dmesg stuff.
      
      This patch implements /sys/kernel/debug/hid/<device>/rdesc file, which
      represents the kernel's view of report descriptor (both the raw report
      descriptor data and parsed contents).
      
      With all the device-specific debug data being available through debugfs, there
      is no need for keeping CONFIG_HID_DEBUG, as the 'debug' parameter to the
      hid module will now only output only driver-specific debugging options, which has
      absolutely minimal memory footprint, just a few error messages and one global
      flag (hid_debug).
      
      We use the current set of output formatting functions. The ones that need to be
      used both for one-shot rdesc seq_file and also for continuous flow of data
      (individual reports, as being sent by the device) distinguish according to the
      passed seq_file parameter, and if it is NULL, it still output to kernel ringbuffer,
      otherwise the corresponding seq_file is used for output.
      
      The format of the output is preserved.
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      a635f9dd
  21. 15 10月, 2008 10 次提交
  22. 23 7月, 2008 2 次提交
  23. 20 5月, 2008 2 次提交
    • A
      HID: remove CVS keywords · f8dea7a3
      Adrian Bunk 提交于
      This patch removes CVS keywords that weren't updated for a long time
      from comments.
      Signed-off-by: NAdrian Bunk <bunk@kernel.org>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      f8dea7a3
    • D
      HID: split Numlock emulation quirk from HID_QUIRK_APPLE_HAS_FN. · 6e704599
      Diego 'Flameeyes' Petteno 提交于
      Since 2.6.25 the HID_QUIRK_APPLE_HAS_FN quirk is enabled even for
      non-laptop Apple keyboards of the Aluminium series. The USB version of
      these don't need Numlock emulation, like the laptop (and Aluminium
      Wireless) do, as they have a proper keypad.
      
      This patch splits the Numlock emulation for Apple keyboards in a
      different quirk flag, so that it can be enabled for all the keyboards
      but the Aluminium USB ones.
      
      If the Numlock emulation is enabled for Aluminium USB keyboards, the
      JKL and UIO keys become the numeric pad, and the rest of the keyboard
      is disabled, included the key used to disable Numlock.
      
      Additionally, these keyboard should not have a Numlock at all, as the
      Numlock key is instead replaced by the 'Clear' key as usual for Apple
      USB keyboards.
      Signed-off-by: NDiego 'Flameeyes' Petteno <flameeyes@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      6e704599
  24. 18 3月, 2008 1 次提交
    • M
      HID: update key codes for Apple aluminium · 07146648
      Michael Hanselmann 提交于
      F5 and F6 have no second function printed on them. Thus their definitions have
      been removed from the table.
      
      KEY_CYCLEWINDOWS doesn't name the function of Mac OS X' Expose properly and
      because we couldn't find a better key code, we decided to use KEY_FN_F4
      instead.
      
      We also changed KEY_BACK and KEY_FORWARD, which apply to browser functions, to
      KEY_PREVIOUSSONG and KEY_NEXTSONG, since the keys are intended to control a
      music player.
      Signed-off-by: NMichael Hanselmann <linux-kernel@hansmi.ch>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      07146648
  25. 14 2月, 2008 1 次提交
  26. 11 2月, 2008 1 次提交
    • J
      HID: fix processing of event quirks · 68a1f2cc
      Jiri Kosina 提交于
      The old code (before move) stopped further processing of the
      event after it has been already processed by the quirk handler.
      
      The new code didn't propagate the return value properly, and
      therefore the processing always proceeded, which was wrong.
      
      This patch fixes it. Pointed out in kernel.org bugzilla #9842
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      68a1f2cc
  27. 28 1月, 2008 3 次提交