1. 20 9月, 2012 1 次提交
  2. 05 9月, 2012 1 次提交
    • F
      Input: usbtouchscreen - initialize eGalax devices · 037a833e
      Forest Bond 提交于
      Certain eGalax devices expose an interface with class HID and protocol
      None.  Some work with usbhid and some work with usbtouchscreen, but
      there is no easy way to differentiate.  Sending an eGalax diagnostic
      packet seems to kick them all into using the right protocol for
      usbtouchscreen, so we can continue to bind them all there (as opposed to
      handing some off to usbhid).
      
      This fixes a regression for devices that were claimed by (and worked
      with) usbhid prior to commit 139ebe8d
      ("Input: usbtouchscreen - fix eGalax HID ignoring"), which made
      usbtouchscreen claim them instead.  With this patch they will still be
      claimed by usbtouchscreen, but they will actually report events
      usbtouchscreen can understand.  Note that these devices will be limited
      to the usbtouchscreen feature set so e.g. dual touch features are not
      supported.
      
      I have the distinct pleasure of needing to support devices of both types
      and have tested accordingly.
      Signed-off-by: NForest Bond <forest.bond@rapidrollout.com>
      Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
      037a833e
  3. 22 8月, 2012 1 次提交
  4. 09 8月, 2012 1 次提交
    • A
      Input: eeti_ts: pass gpio value instead of IRQ · 4eef6cbf
      Arnd Bergmann 提交于
      The EETI touchscreen asserts its IRQ line as soon as it has data in its
      internal buffers. The line is automatically deasserted once all data has
      been read via I2C. Hence, the driver has to monitor the GPIO line and
      cannot simply rely on the interrupt handler reception.
      
      In the current implementation of the driver, irq_to_gpio() is used to
      determine the GPIO number from the i2c_client's IRQ value.
      
      As irq_to_gpio() is not available on all platforms, this patch changes
      this and makes the driver ignore the passed in IRQ. Instead, a GPIO is
      added to the platform_data struct and gpio_to_irq is used to derive the
      IRQ from that GPIO. If this fails, bail out. The driver is only able to
      work in environments where the touchscreen GPIO can be mapped to an
      IRQ.
      
      Without this patch, building raumfeld_defconfig results in:
      
      drivers/input/touchscreen/eeti_ts.c: In function 'eeti_ts_irq_active':
      drivers/input/touchscreen/eeti_ts.c:65:2: error: implicit declaration of function 'irq_to_gpio' [-Werror=implicit-function-declaration]
      Signed-off-by: NDaniel Mack <zonque@gmail.com>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: stable@vger.kernel.org (v3.2+)
      Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      Cc: Sven Neumann <s.neumann@raumfeld.com>
      Cc: linux-input@vger.kernel.org
      Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
      4eef6cbf
  5. 25 7月, 2012 1 次提交
  6. 18 7月, 2012 1 次提交
  7. 10 7月, 2012 1 次提交
    • R
      ARM: sa11x0/pxa: convert OS timer registers to IOMEM · 3169663a
      Russell King 提交于
      Make the OS timer registers have IOMEM like properities so they can
      be passed to readl_relaxed/writel_relaxed() et.al. rather than being
      straight volatile dereferences.  Add linux/io.h includes where
      required.
      
      linux/io.h includes added to arch/arm/mach-sa1100/cpu-sa1100.c,
       arch/arm/mach-sa1100/jornada720_ssp.c, arch/arm/mach-sa1100/leds-lart.c
       drivers/input/touchscreen/jornada720_ts.c, drivers/pcmcia/sa1100_shannon.c
      from Arnd.
      
      This fixes these warnings:
      
      arch/arm/mach-sa1100/time.c: In function 'sa1100_timer_init':
      arch/arm/mach-sa1100/time.c:104: warning: passing argument 1 of 'clocksource_mmio_init' discards qualifiers from pointer target type
      arch/arm/mach-pxa/time.c: In function 'pxa_timer_init':
      arch/arm/mach-pxa/time.c:126: warning: passing argument 1 of 'clocksource_mmio_init' discards qualifiers from pointer target type
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      3169663a
  8. 08 7月, 2012 1 次提交
    • D
      Input: wacom_i2c - fix compiler warning · 8830cb88
      Dmitry Torokhov 提交于
      Apparently GCC can't figure out that we bail if we fail to query device
      and will not try to use 'features':
      
      drivers/input/touchscreen/wacom_i2c.c: In function ‘wacom_i2c_probe’:
      drivers/input/touchscreen/wacom_i2c.c:177:20: warning: ‘features.fw_version’
      	may be used uninitialized in this function [-Wmaybe-uninitialized]
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      8830cb88
  9. 07 7月, 2012 1 次提交
  10. 06 7月, 2012 1 次提交
  11. 05 7月, 2012 1 次提交
  12. 29 6月, 2012 23 次提交
  13. 20 5月, 2012 1 次提交
    • M
      mfd: Convert wm831x to irq_domain · cd99758b
      Mark Brown 提交于
      The modern idiom is to use irq_domain to allocate interrupts. This is
      useful partly to allow further infrastructure to be based on the domains
      and partly because it makes it much easier to allocate virtual interrupts
      to devices as we don't need to allocate a contiguous range of interrupt
      numbers.
      
      Convert the wm831x driver over to this infrastructure, using a legacy
      IRQ mapping if an irq_base is specified in platform data and otherwise
      using a linear mapping, always registering the interrupts even if they
      won't ever be used. Only boards which need to use the GPIOs as
      interrupts should need to use an irq_base.
      
      This means that we can't use the MFD irq_base management since the
      unless we're using an explicit irq_base from platform data we can't rely
      on a linear mapping of interrupts.  Instead we need to map things via
      the irq_domain - provide a conveniencem function wm831x_irq() to save a
      small amount of typing when doing so. Looking at this I couldn't clearly
      see anything the MFD core could do to make this nicer.
      
      Since we're not supporting device tree yet there's no meaningful
      advantage if we don't do this conversion in one, the fact that the
      interrupt resources are used for repeated IP blocks makes accessor
      functions for the irq_domain more trouble to do than they're worth.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      cd99758b
  14. 11 5月, 2012 5 次提交