1. 01 5月, 2012 2 次提交
  2. 19 4月, 2012 1 次提交
  3. 06 4月, 2012 1 次提交
    • S
      simple_open: automatically convert to simple_open() · 234e3405
      Stephen Boyd 提交于
      Many users of debugfs copy the implementation of default_open() when
      they want to support a custom read/write function op.  This leads to a
      proliferation of the default_open() implementation across the entire
      tree.
      
      Now that the common implementation has been consolidated into libfs we
      can replace all the users of this function with simple_open().
      
      This replacement was done with the following semantic patch:
      
      <smpl>
      @ open @
      identifier open_f != simple_open;
      identifier i, f;
      @@
      -int open_f(struct inode *i, struct file *f)
      -{
      (
      -if (i->i_private)
      -f->private_data = i->i_private;
      |
      -f->private_data = i->i_private;
      )
      -return 0;
      -}
      
      @ has_open depends on open @
      identifier fops;
      identifier open.open_f;
      @@
      struct file_operations fops = {
      ...
      -.open = open_f,
      +.open = simple_open,
      ...
      };
      </smpl>
      
      [akpm@linux-foundation.org: checkpatch fixes]
      Signed-off-by: NStephen Boyd <sboyd@codeaurora.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Julia Lawall <Julia.Lawall@lip6.fr>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      234e3405
  4. 30 3月, 2012 1 次提交
  5. 20 3月, 2012 1 次提交
    • A
      HID: multitouch: add PID for Fructel product · 4d5df5d1
      Andreas Nielsen 提交于
      Adds multitouch support for the Gametel Android game controller.
      
      The multitouch events are emulated by the Gametel device. Each physical button
      is configured to generate a MT event on a specific coordinate. This seems to be
      the only way for us to support Android games that doesn't support HID gamepads.
      It is possible to inject MT events at Android level, but this requires root on
      the phone.
      Signed-off-by: NAndreas Nielsen <eas@svep.se>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      4d5df5d1
  6. 16 3月, 2012 2 次提交
  7. 13 3月, 2012 1 次提交
  8. 12 3月, 2012 4 次提交
  9. 09 3月, 2012 2 次提交
  10. 06 3月, 2012 7 次提交
  11. 05 3月, 2012 1 次提交
    • N
      HID: hid-input: allow array fields out of range · 883e0e36
      Nikolai Kondrashov 提交于
      Allow array field values out of range as per HID 1.11 specification,
      section 6.2.25:
      
      	Rather than returning a single bit for each button in the group, an
      	array returns an index in each field that corresponds to the pressed
      	button (like keyboard scan codes). An out-of range value in and array
      	field is considered no controls asserted.
      
      Apparently, "and" above is a typo and should be "an".
      
      This fixes at least Waltop tablet pen clicks - otherwise BTN_TOUCH is never
      released.
      
      The relevant part of Waltop tablet report descriptors is this:
      
      	0x09, 0x42,         /*          Usage (Tip Switch),         */
      	0x09, 0x44,         /*          Usage (Barrel Switch),      */
      	0x09, 0x46,         /*          Usage (Tablet Pick),        */
      	0x15, 0x01,         /*          Logical Minimum (1),        */
      	0x25, 0x03,         /*          Logical Maximum (3),        */
      	0x75, 0x04,         /*          Report Size (4),            */
      	0x95, 0x01,         /*          Report Count (1),           */
      	0x80,               /*          Input,                      */
      
      This is a regression fix for commit b4b583d4 ("HID: be more strict when
      ignoring out-of-range fields").
      Signed-off-by: NNikolai Kondrashov <spbnick@gmail.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      883e0e36
  12. 01 3月, 2012 2 次提交
  13. 28 2月, 2012 2 次提交
  14. 27 2月, 2012 2 次提交
  15. 23 2月, 2012 1 次提交
  16. 22 2月, 2012 1 次提交
  17. 21 2月, 2012 7 次提交
  18. 15 2月, 2012 1 次提交
  19. 07 2月, 2012 1 次提交