1. 31 3月, 2014 2 次提交
  2. 28 3月, 2014 1 次提交
  3. 07 1月, 2014 1 次提交
  4. 05 5月, 2012 2 次提交
  5. 02 5月, 2012 2 次提交
  6. 26 4月, 2012 1 次提交
  7. 19 11月, 2011 1 次提交
    • G
      USB: convert drivers/input/* to use module_usb_driver() · 08642e7c
      Greg Kroah-Hartman 提交于
      This converts the drivers in drivers/input/* to use the
      module_usb_driver() macro which makes the code smaller and a bit
      simpler.
      
      Added bonus is that it removes some unneeded kernel log messages about
      drivers loading and/or unloading.
      
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: Ville Syrjala <syrjala@sci.fi>
      Cc: Henk Vergonet <Henk.Vergonet@gmail.com>
      Cc: Alessandro Rubini <rubini@ipvvis.unipv.it>
      Cc: Henrik Rydberg <rydberg@euromail.se>
      Cc: "Magnus Hörlin" <magnus@alefors.se>
      Cc: Chris Moeller <kode54@gmail.c>
      Cc: Christoph Fritz <chf.fritz@googlemail.com>
      Cc: Lucas De Marchi <lucas.demarchi@profusion.mobi>
      Cc: Jesper Juhl <jj@chaosbits.net>
      Cc: Edwin van Vliet <edwin@cheatah.nl>
      Cc: Ping Cheng <pingc@wacom.com>
      Cc: Eduard Hasenleithner <eduard@hasenleithner.at>
      Cc: Alexander Strakh <strakh@ispras.ru>
      Cc: Glenn Sommer <gsommer@datanordisk.dk>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      08642e7c
  8. 31 10月, 2010 1 次提交
  9. 09 8月, 2010 1 次提交
  10. 21 5月, 2010 1 次提交
  11. 11 3月, 2010 1 次提交
    • V
      Input: appletouch - fix integer overflow issue · 04b4b88c
      Vadim Zaliva 提交于
      When reading data from Geyser 2 touchpads used on post Oct 2005 Apple
      PowerBooks the driver was casting X and Y coordinates values to
      'signed char'. Testing on one of such PowerBooks I have noticed that
      touchpad always generates positive values, but some of them are greater
      that 127, and thus, when cast to 'signed char' being interpreted as
      a negative.
      
      Such bigger values have been observed infrequently, closer to the
      edges of a touchpad, so the problem was not very visible.
      Nevertheless, the patch would potentially improve touchpad
      driver accuracy.
      Signed-off-by: NVadim Zaliva <lord@crocodile.org>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      04b4b88c
  12. 03 6月, 2009 1 次提交
    • J
      Input: appletouch - improve finger detection · 05e882f8
      Jeremy Huddleston 提交于
      The appletouch driver is prone to reporting multiple fingers when only
      one is pressing.  The appletouch driver queries an array of pressure
      sensors and counts local maxima in pressure to determine the number of
      fingers.  It just does this on the raw values, so a data stream like:
      
      0 100 250 300 299 300 250 100 0
      
      actually registers as 2 fingers.
      
      This patch updates the logic to ignore small dips in pressure that are
      less than the threshold.
      Signed-off-by: NJeremy Huddleston <jeremyhu@freedesktop.org>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      05e882f8
  13. 29 4月, 2009 1 次提交
  14. 29 10月, 2008 1 次提交
    • S
      Input: appletouch - driver refactoring · 09779678
      Stelian Pop 提交于
      The appletouch driver has grown up from supporting only a couple of
      touchpads into supporting many touchpads, which can have different
      number of sensors, different aspect ratios etc.
      
      This patch cleans up the current driver code and makes it easy to
      support the features of each different touchpad.
      
      As a side effect, this patch also modifies the 'Y' multiplication factor
      of the 'geyser3' and 'geyser4' touchpads (found on Core Duo and Core2
      Duo MacBook and MacBook Pro laptops) in order to make the touchpad
      output match the aspect ratio of the touchpad (Y factor changed from 43
      to 64).
      
      [dtor@mail.ru: make atp_info constant]
      Signed-off-by: NStelian Pop <stelian@popies.net>
      Acked-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      09779678
  15. 09 8月, 2008 2 次提交
  16. 17 6月, 2008 1 次提交
  17. 17 5月, 2008 3 次提交
  18. 02 4月, 2008 2 次提交
  19. 02 11月, 2007 1 次提交
  20. 22 10月, 2007 1 次提交
  21. 13 10月, 2007 1 次提交
  22. 25 9月, 2007 1 次提交
  23. 20 7月, 2007 1 次提交
  24. 08 5月, 2007 1 次提交
  25. 12 4月, 2007 3 次提交
  26. 17 11月, 2006 3 次提交
    • J
      Input: appletouch - use canonical names in USB IDs · e5d9832c
      Julien BLACHE 提交于
      Small readability improvement for appletouch: use canonical names
      instead of raw USB IDs for some of the devices.
      Signed-off-by: NJulien BLACHE <jb@jblache.org>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      e5d9832c
    • J
      Input: appletouch - add Geyser IV support · 009ad0e7
      Julien BLACHE 提交于
      The new Core2 Duo MacBook Pro has a new keyboard+trackpad named
      "Geyser IV".
      
      According to the Info.plist in the OS X kext, it looks like the Geyser
      IV trackpad is identical to the Geyser III trackpad: same IOClass
      (AppleUSBGrIIITrackpad), same acceleration tables.
      Signed-off-by: NJulien BLACHE <jb@jblache.org>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      009ad0e7
    • J
      Input: appletouch - verious updates for MacBooks · 00081d37
      Jason Parekh 提交于
      Change a bit the finger detection method used by the appletouch
      driver to reduce touchpad "jumpiness":
      
       - Adjust the method for detecting multiple fingers. Previously, it
         recognized a new finger when a low sensor reading is followed by
         a high sensor reading. The new method checks for 'humps' in the
         sensor readings, so there doesn't necessarily have to be a low
         sensor between two high sensors for two fingers to be triggered.
         This allows detecting presence of two fingers on the touchpad
         even when they touch each other.
      
       - Change absolute coordinate calculation to us to get rid of "jumps".
         Instead of using full value from a sensor once it passes the
         threshold subtract theshold value from the reading.
      
       - Allow adjusting threshold value via module parameter.
      
      The patch doesn't seem to affect the Powerbooks but does greatly improve
      the touchpad behaviour on the MacBooks.
      Signed-off-by: NJason Parekh <jasonparekh@gmail.com>
      Signed-off-by: NStelian Pop <stelian@popies.net>
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      00081d37
  27. 05 10月, 2006 1 次提交
    • D
      IRQ: Maintain regs pointer globally rather than passing to IRQ handlers · 7d12e780
      David Howells 提交于
      Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
      of passing regs around manually through all ~1800 interrupt handlers in the
      Linux kernel.
      
      The regs pointer is used in few places, but it potentially costs both stack
      space and code to pass it around.  On the FRV arch, removing the regs parameter
      from all the genirq function results in a 20% speed up of the IRQ exit path
      (ie: from leaving timer_interrupt() to leaving do_IRQ()).
      
      Where appropriate, an arch may override the generic storage facility and do
      something different with the variable.  On FRV, for instance, the address is
      maintained in GR28 at all times inside the kernel as part of general exception
      handling.
      
      Having looked over the code, it appears that the parameter may be handed down
      through up to twenty or so layers of functions.  Consider a USB character
      device attached to a USB hub, attached to a USB controller that posts its
      interrupts through a cascaded auxiliary interrupt controller.  A character
      device driver may want to pass regs to the sysrq handler through the input
      layer which adds another few layers of parameter passing.
      
      I've build this code with allyesconfig for x86_64 and i386.  I've runtested the
      main part of the code on FRV and i386, though I can't test most of the drivers.
      I've also done partial conversion for powerpc and MIPS - these at least compile
      with minimal configurations.
      
      This will affect all archs.  Mostly the changes should be relatively easy.
      Take do_IRQ(), store the regs pointer at the beginning, saving the old one:
      
      	struct pt_regs *old_regs = set_irq_regs(regs);
      
      And put the old one back at the end:
      
      	set_irq_regs(old_regs);
      
      Don't pass regs through to generic_handle_irq() or __do_IRQ().
      
      In timer_interrupt(), this sort of change will be necessary:
      
      	-	update_process_times(user_mode(regs));
      	-	profile_tick(CPU_PROFILING, regs);
      	+	update_process_times(user_mode(get_irq_regs()));
      	+	profile_tick(CPU_PROFILING);
      
      I'd like to move update_process_times()'s use of get_irq_regs() into itself,
      except that i386, alone of the archs, uses something other than user_mode().
      
      Some notes on the interrupt handling in the drivers:
      
       (*) input_dev() is now gone entirely.  The regs pointer is no longer stored in
           the input_dev struct.
      
       (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking.  It does
           something different depending on whether it's been supplied with a regs
           pointer or not.
      
       (*) Various IRQ handler function pointers have been moved to type
           irq_handler_t.
      Signed-Off-By: NDavid Howells <dhowells@redhat.com>
      (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
      7d12e780
  28. 28 9月, 2006 1 次提交
  29. 12 8月, 2006 1 次提交