1. 20 9月, 2012 1 次提交
  2. 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
  3. 25 7月, 2012 1 次提交
  4. 18 7月, 2012 1 次提交
  5. 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
  6. 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
  7. 07 7月, 2012 1 次提交
  8. 06 7月, 2012 1 次提交
  9. 05 7月, 2012 1 次提交
  10. 29 6月, 2012 23 次提交
  11. 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
  12. 11 5月, 2012 5 次提交
  13. 05 5月, 2012 1 次提交
    • G
      USB: input: usbtouchscreen.c: fix up dev_* messages · 0a5ebc88
      Greg Kroah-Hartman 提交于
      Previously I had made the struct device point to the input device, but
      after talking with Dmitry, he said that the USB device would make more
      sense for this driver to point to.  So converted it to use that instead.
      
      CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      CC: Henrik Rydberg <rydberg@euromail.se>
      CC: Rusty Russell <rusty@rustcorp.com.au>
      CC: Viresh Kumar <viresh.kumar@st.com>
      CC: Armando Visconti <armando.visconti@st.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0a5ebc88
  14. 02 5月, 2012 1 次提交
    • G
      USB: usbtouchscreen.c: remove dbg() usage · b741ab9d
      Greg Kroah-Hartman 提交于
      dbg() was a very old USB-specific macro that should no longer
      be used. This patch removes it from being used in the driver
      and uses dev_dbg() instead.
      
      CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
      CC: Henrik Rydberg <rydberg@euromail.se>
      CC: Rusty Russell <rusty@rustcorp.com.au>
      CC: Viresh Kumar <viresh.kumar@st.com>
      CC: Armando Visconti <armando.visconti@st.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b741ab9d