aboutsummaryrefslogtreecommitdiff
path: root/drivers/input
AgeCommit message (Collapse)AuthorFilesLines
2012-05-04USB: input: iforce: fix up dev_* messagesGreg Kroah-Hartman3-5/+7
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-02Merge tag 'imx-cleanup' of git://git.pengutronix.de/git/imx/linux-2.6 into ↵Arnd Bergmann2-4/+3
next/cleanup From: Sascha Hauer <[email protected]> ARM: i.MX cleanups for 3.5 * tag 'imx-cleanup' of git://git.pengutronix.de/git/imx/linux-2.6: (5 commits) ARM: mx53: fix pad definitions for MX53_PAD_EIM_D28__I2C1_SDA and MX53_PAD_GPIO_8__CAN1_RXCAN ARM: imx/eukrea_mbimx27-baseboard: fix typo in error message ARM: i.MX51 iomux: add missed definitions for SION-bit and mode for some pads arm: imx: add missing select IMX_HAVE_PLATFORM for MACH_MX35_3DS in Kconfig arm: imx: make various struct sys_timer static Includes an update to 3.4-rc4 Signed-off-by: Arnd Bergmann <[email protected]>
2012-05-02Input: evdev - properly handle read/write with count 0Dmitry Torokhov1-23/+38
According to the standard count 0 is special - no IO should happen but we can check error conditions (device gone away, etc), and return 0 if there are no errors. We used to return -EINVAL instead and we also could return 0 if an event was "stolen" by another thread. Signed-off-by: Dmitry Torokhov <[email protected]>
2012-05-02Input: evdev - properly access RCU-protected 'grab' dataDmitry Torokhov1-3/+5
We should use rcu_dereference_protected() when checking if given client is the one that grabbed the device. This fixes warnings produced by sparse. Signed-off-by: Dmitry Torokhov <[email protected]>
2012-05-02Input: mpu3050 - set IRQF_ONESHOT when requesting the interruptStephen Warren1-1/+1
Commit 1c6c695 "genirq: Reject bogus threaded irq requests" requires that request_threaded_irq() either be passed an explicit handler, or that IRQF_ONESHOT be set. Set this flag. Signed-off-by: Stephen Warren <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-05-02Input: serio_raw - signal EFAULT even if read/write partially succeedsDmitry Torokhov1-15/+18
When copy_to/from_user fails in the middle of transfer we should not report to the user that read/write partially succeeded but rather report -EFAULT right away, so that application will know that it got its buffers all wrong. If application messed up its buffers we can't trust the data fetched from userspace and successfully written to the device or if data read from the device and transferred to userspace ended up where application expected it to end. If serio_write() fails we still going to report partial writes if failure happens in the middle of the transfer. This is basically a revert of 7a0a27d2ce38aee19a31fee8c12095f586eed393 and 4fa0771138d0b56fe59ab8ab3b1ce9e594484362. Signed-off-by: Dmitry Torokhov <[email protected]>
2012-05-02Input: wacom - use dev_xxx() instead of naked printk()s and dbg()sDmitry Torokhov2-17/+27
Reviewed-by: Chris Bagwell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-05-02Input: wacom - return proper error if usb_get_extra_descriptor() failsDmitry Torokhov1-5/+6
Instead of returning 1 (which is not even negative) let's capture and return error codde returned by usb_get_extra_descriptor(). Reviewed-by: Chris Bagwell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-05-02Input: wacom - fix sparse warningDmitry Torokhov1-2/+2
This fixes the following warning from sparse warning: Using plain integer as NULL pointer Reviewed-by: Chris Bagwell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-05-01USB: usbtouchscreen.c: remove dbg() usageGreg Kroah-Hartman1-26/+42
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 <[email protected]> CC: Henrik Rydberg <[email protected]> CC: Rusty Russell <[email protected]> CC: Viresh Kumar <[email protected]> CC: Armando Visconti <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: kbtab.c: remove dbg() usageGreg Kroah-Hartman1-2/+4
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: gtco.c: remove dbg() usageGreg Kroah-Hartman1-42/+45
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: aiptek.c: remove dbg() usageGreg Kroah-Hartman1-9/+13
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 <[email protected]> CC: Jesper Juhl <[email protected]> CC: JJ Ding <[email protected]> CC: Edwin van Vliet <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: acecad.c: remove dbg() usageGreg Kroah-Hartman1-2/+4
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: bcm5974.c: remove dbg() usageGreg Kroah-Hartman1-6/+10
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: Henrik Rydberg <[email protected]> CC: Alessandro Rubini <[email protected]> CC: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: appletouch.c: remove dbg() usageGreg Kroah-Hartman1-7/+11
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: Alessandro Rubini <[email protected]> CC: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: yealink.c: remove dbg() usageGreg Kroah-Hartman1-4/+6
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: Henk Vergonet <[email protected]> CC: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: powermate.c: remove dbg() usageGreg Kroah-Hartman1-4/+6
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: xpad.c: remove dbg() usageGreg Kroah-Hartman1-11/+19
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 <[email protected]> CC: "Magnus Hörlin" <[email protected]> CC: Rusty Russell <[email protected]> CC: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: iforce: remove dbg() usageGreg Kroah-Hartman2-8/+12
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: wacom: remove dbg() usageGreg Kroah-Hartman2-9/+17
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 <[email protected]> Cc: Ping Cheng <[email protected]> Cc: Eduard Hasenleithner <[email protected]> Cc: Chris Bagwell <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: usbtouchscreen.c: fix up dev_err() usageGreg Kroah-Hartman1-2/+2
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> CC: Henrik Rydberg <[email protected]> CC: Rusty Russell <[email protected]> CC: Viresh Kumar <[email protected]> CC: Armando Visconti <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: wacom_sys.c: fix up dev_err() usageGreg Kroah-Hartman1-2/+2
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> CC: Ping Cheng <[email protected]> CC: Chris Bagwell <[email protected]> CC: Eduard Hasenleithner <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: kbtab.c: fix up dev_err() usageGreg Kroah-Hartman1-1/+1
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: gtco.c: fix up dev_err() usageGreg Kroah-Hartman1-1/+1
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: aiptek.c: fix up dev_err() usageGreg Kroah-Hartman1-1/+1
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> CC: Jesper Juhl <[email protected]> CC: JJ Ding <[email protected]> CC: Edwin van Vliet <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: acecad.c: fix up dev_err() usageGreg Kroah-Hartman1-1/+1
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: bcm5974.c: fix up dev_err() usageGreg Kroah-Hartman1-5/+5
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> CC: Henrik Rydberg <[email protected]> CC: Alessandro Rubini <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: appletouch.c: fix up dev_err() usageGreg Kroah-Hartman1-13/+11
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> CC: Alessandro Rubini <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: yealink.c: fix up dev_err() usageGreg Kroah-Hartman1-5/+5
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> CC: Henk Vergonet <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: powermate.c: fix up dev_err() usageGreg Kroah-Hartman1-1/+1
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: keyspan_remote.c: fix up dev_err() usageGreg Kroah-Hartman1-5/+5
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: cm109.c: fix up dev_err() usageGreg Kroah-Hartman1-6/+6
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> CC: Axel Lin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: xpad.c: fix up dev_err() usageGreg Kroah-Hartman1-2/+2
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> CC: "Magnus Hörlin" <[email protected]> CC: Rusty Russell <[email protected]> CC: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-05-01USB: input: joystick: iforce: fix up dev_err() usagesGreg Kroah-Hartman2-2/+2
We should always reference the input device for dev_err(), not the USB device. Fix up the places where I got this wrong. Reported-by: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-04-30Merge branch 'for-linus' of ↵Linus Torvalds1-1/+2
git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input Pull input fix from Dmitry Torokhov: "A simple fix for a recent regression in Synaptics driver" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: synaptics - fix regression with "image sensor" trackpads
2012-04-29Input: add support for DA9052/53 touch screen controllerAshish Jangam3-0/+388
This driver adds support for DA9052/53 4-wire resistive ADC interfaced touchscreen controller. DA9052/53 is a multi-function device, therefore this driver depends on DA9052/53 core. This patch is functionally tested on Samsung SMDKV6410. Signed-off-by: David Dajun Chen <[email protected]> Signed-off-by: Ashish Jangam <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-04-29Input: usbtouchscreen - only expose e2i configure option in expert modeShawn Landden1-1/+2
as is the case of all other devices supported by usbtouchscreen.c Also list e2i under the composite configure option (TOUCHSCREEN_USB_COMPOSITE) Signed-off-by: Shawn Landden <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-04-29Input: usbtouchscreen - fix typoShawn Landden1-1/+1
Signed-off-by: Shawn Landden <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-04-29Input: wacom - add 0xE5 (MT device) supportPing Cheng4-45/+157
Main part of patch is adding support for a new Wacom MT touch packet and labels these devices using MTSCREEN type. Other items of interest: Delete some duplicate code in HID parsing for Y info since its already done in X path. In wacom_query_tablet_data(), only invoke the set report that requests tablets to send Wacom Touch packets for Finger interfaces. Mostly, this is to make code intent clear. Tested-by: Jason Gerecke <[email protected]> Signed-off-by: Chris Bagwell <[email protected]> Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-04-29Input: wacom - retrieve maximum number of touch pointsPing Cheng3-24/+65
From the HID usage table when it is supported. Tested-by: Jason Gerecke <[email protected]> Signed-off-by: Chris Bagwell <[email protected]> Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-04-27Input: pxa27x_keypad add choice to set direct_key_maskChao Xie1-1/+8
Direct keys usage may not start from KP_DKIN0, add a msk option to configure the specifics for platforms that can skip some keys. Signed-off-by: Chao Xie <[email protected]> Signed-off-by: Haojian Zhuang <[email protected]>
2012-04-27Input: pxa27x_keypad direct key may be low activeChao Xie1-1/+9
KPDK_DK only indicates the pin level of direct key. So it is related to board, and low level may be active which indicates that a key is pressed. Signed-off-by: Chao Xie <[email protected]> Signed-off-by: Haojian Zhuang <[email protected]>
2012-04-27Input: pxa27x_keypad bug fix for direct_key_maskChao Xie1-1/+1
When direcct_key_num is 0, the mask should be 0. When direcct_key_num is 1, the mask should be 0b1. Signed-off-by: Chao Xie <[email protected]> Signed-off-by: Haojian Zhuang <[email protected]>
2012-04-27Input: pxa27x_keypad keep clock on as wakeup sourceChao Xie1-12/+21
When the keypad is used as wake up source, the clock can not be disabled. Or it can not detect key pressing. If the keypad is used as wake up source, when resume back, do not enable the clock and configure it again because the register content is retained. Signed-off-by: Chao Xie <[email protected]> Signed-off-by: Haojian Zhuang <[email protected]>
2012-04-25USB: usbtouchscreen.c: remove err() usageGreg Kroah-Hartman1-4/+6
err() was a very old USB-specific macro that I thought had gone away. This patch removes it from being used in the driver and uses dev_err() instead. CC: Dmitry Torokhov <[email protected]> CC: Henrik Rydberg <[email protected]> CC: Rusty Russell <[email protected]> CC: Viresh Kumar <[email protected]> CC: Armando Visconti <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-04-25USB: wacom_sys.c: remove err() usageGreg Kroah-Hartman1-2/+3
err() was a very old USB-specific macro that I thought had gone away. This patch removes it from being used in the driver and uses dev_err() instead. CC: Dmitry Torokhov <[email protected]> CC: Ping Cheng <[email protected]> CC: Chris Bagwell <[email protected]> CC: Eduard Hasenleithner <[email protected]> CC: Jason Gerecke <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-04-25USB: kbtab.c: remove err() usageGreg Kroah-Hartman1-2/+3
err() was a very old USB-specific macro that I thought had gone away. This patch removes it from being used in the driver and uses dev_err() instead. CC: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-04-25USB: gtco.c: remove err() usageGreg Kroah-Hartman1-10/+11
err() was a very old USB-specific macro that I thought had gone away. This patch removes it from being used in the driver and uses dev_err() instead. CC: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2012-04-25USB: aiptek.c: remove err() usageGreg Kroah-Hartman1-2/+3
err() was a very old USB-specific macro that I thought had gone away. This patch removes it from being used in the driver and uses dev_err() instead. CC: Dmitry Torokhov <[email protected]> CC: Jesper Juhl <[email protected]> CC: JJ Ding <[email protected]> CC: Edwin van Vliet <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>