aboutsummaryrefslogtreecommitdiff
path: root/drivers/input
AgeCommit message (Collapse)AuthorFilesLines
2009-09-12Merge branch 'devel-stable' into develRussell King6-18/+62
Conflicts: MAINTAINERS arch/arm/mm/fault.c
2009-09-12Merge branches 'arm', 'at91', 'bcmring', 'ep93xx', 'mach-types', 'misc' and ↵Russell King11-185/+695
'w90x900' into devel
2009-09-10Input: psmouse - use boolean typeDmitry Torokhov20-125/+133
Signed-off-by: Dmitry Torokhov <[email protected]>
2009-09-10Input: i8042 - use platform_driver_probeDmitry Torokhov1-23/+22
i8042 is not hot-pluggable and we create the device when we register the driver, so let's save some memory by using platform_device_probe and using __init instead of __devinit. Signed-off-by: Dmitry Torokhov <[email protected]>
2009-09-10Input: i8042 - use boolean type where it makes senseDmitry Torokhov2-70/+71
Signed-off-by: Dmitry Torokhov <[email protected]>
2009-09-10Input: i8042 - try disabling and re-enabling AUX port at closeDmitry Torokhov1-1/+49
Ever since we switched from having a polling timer to registering IRQ handlers for both keyboard and AUX ports at the driver registration time, on certain boxes probing for a mouse results in keyboard stopping working. The only real difference between old and new way is that before we disabled ports after unsuccessful probe whereas now we leave them as is. Try to emulate the old behavior by disabling and immediately re-enabling AUX and KBD ports when corresponding serio port is being closed. Signed-off-by: Dmitry Torokhov <[email protected]>
2009-09-10Input: pxa27x_keypad - allow modifying keymap from userspaceDmitry Torokhov1-82/+91
Tested-by: Mike Rapoport <[email protected]> Acked-by: Eric Miao <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-09-10Input: sunkbd - fix formattingDmitry Torokhov1-55/+73
Adjust the way 'switch' statements were indented; make sure we stay under 80 ciolumns. Signed-off-by: Dmitry Torokhov <[email protected]>
2009-09-10Input: i8042 - bypass AUX IRQ delivery test on laptopsDmitry Torokhov2-1/+36
It seems that many laptops do not fully implement AUX LOOP command in their keyboard controllers, causing issues with touchpad detection. We know however that almost every laptop/portable uses a PS/2 pointing device and, even if user disables it in favor of an external mouse, the system will not use IRQ 12 for anything else. Therefore we may bypass AUX IRQ delivery test when running on a laptop and assume that it is routed properly. Just to be safe we require the box to have good PNP data in order to bypass the test. [Jin Dongming <[email protected]>: fix crash caused by missing terminator in the DMI table] Signed-off-by: Dmitry Torokhov <[email protected]>
2009-09-05Merge branch 'for-linus' of ↵Linus Torvalds2-0/+43
git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: atkbd - add Compaq Presario R4000-series repeat quirk Input: i8042 - add Acer Aspire 5536 to the nomux list
2009-09-04wm97xx-core: Pass platform_data to batteryMarek Vasut1-0/+3
Signed-off-by: Marek Vasut <[email protected]> Acked-by: Dmitry Torokhov <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
2009-09-03Input: atkbd - add Compaq Presario R4000-series repeat quirkDave Andrews1-0/+35
Compaq Presario R4000-series laptops are not sending a "volume up button release" and "volume down button release" signal in the PS/2 protocol for atkbd. The URL below has some of confirmed reports: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/385477 Signed-off-by: Dave Andrews <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-09-03Input: wacom_w8001 - simplify querying logicDmitry Torokhov1-81/+40
There is no need for locking when we send query and start commands to the touchscreen since there is no concurrency. Signed-off-by: Dmitry Torokhov <[email protected]>
2009-09-03Input: atkbd - allow setting force-release bitmap via sysfsDmitry Torokhov1-6/+37
There are more and more laptop requiring use of force_release quirk for their multimedia and other specialized keys. Adding their DMI data to the kernel is not sustainable; instead we will rely on help from userspace (HAL) to do that for us. This patch creates a new 'force_release' sysfs attribute (that belongs to serio device to which keyboard is attached) which can be used to set up force_release keymap. For example, Dell laptop owners might do: echo 133-139,143,147 > /sys/devices/platform/i8042/serio0/force_release Signed-off-by: Dmitry Torokhov <[email protected]>
2009-09-02ARM: 5682/1: Add cpu.c and dev.c and modify some files of w90p910 platformwanzongshun1-2/+2
Add the cpu.c and dev.c and modify w90p910 platform to apply to use the common API(provided by cpu.c and dev.c) at the same time, I renamed all w90x900 to nuc900 in every c file of w90x900 platform and touchscreen's driver name. Signed-off-by: Wan ZongShun <[email protected]> Signed-off-by: Russell King <[email protected]>
2009-08-30Input: w90p910_keypad - move a dereference below a NULL testJulia Lawall1-1/+3
We should first check whether platform data is NULL or not, before dereferencing it to get the keymap. Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-28OMAP: Rename OMAP_MPUIO_BASE to OMAP1_MPUIO_BASETony Lindgren1-11/+11
Rename OMAP_MPUIO_BASE to OMAP1_MPUIO_BASE Signed-off-by: Tony Lindgren <[email protected]>
2009-08-27Input: add twl4030_keypad driverDavid Brownell3-0/+492
Add a driver for the keypad controller on TWL4030 family chips. These support up to an 8x8 key matrix. The TWL4030 multifunction chips are mostly used on OMAP3 (or OMAP 2430) based boards. [[email protected]: switch to matrix-keypad framework, fix changing keymap from userspace] Reviewed-by: Trilok Soni <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-27Input: matrix-keypad - add function to build device keymapDmitry Torokhov2-26/+5
Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-27Input: tosakbd - fix cleaning up KEY_STROBEs after errorRoel Kluin1-9/+9
Direct to fail2 to gpio_free() the KEY_STROBEs as well as the KEY_SENSEs. [[email protected]: change keymap from unsigned int to unsigned short] Signed-off-by: Roel Kluin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-27Input: joydev - validate axis/button maps before clobbering current onesStephen Kitt1-32/+74
Up to now axis and button map validation was done after the user-supplied values were copied over the driver's map. This patch copies the user-supplied values into temporary buffers and validated them before overwriting the driver's permanent maps. Also change JSIOCGBTNMAP and JSIOCGAXMAP to return number of bytes returned to userspace instead of 0. Signed-off-by: Stephen Kitt <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-27Merge commit 'v2.6.31-rc8' into nextDmitry Torokhov9-55/+119
2009-08-26Input: i8042 - add Acer Aspire 5536 to the nomux listDmitry Torokhov1-0/+8
When KBC is in active multiplexing mode, disabling and re-enabling the touchpad with the special key leaves the touchpad dead. Since the laptop does not have any external PS/2 ports disabling MUX mode should be safe. Reported-by: Eugeniy Meshcheryakov <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-24Merge branch 'for-linus' of ↵Linus Torvalds5-45/+85
git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: ucb1400_ts - enable interrupt unconditionally Input: ucb1400_ts - enable ADC Filter Input: wacom - don't use on-stack memory for report buffers Input: iforce - support new revision of ACT LABS Force RS Input: joydev - decouple axis and button map ioctls from input constants
2009-08-21Input: ucb1400_ts - enable interrupt unconditionallyPavel Revak1-4/+4
Sometimes, when using the touchscreen, it stops working till next restart and the following message is printed: ucb1400: unexpected IE_STATUS = 0x0 The following patch retriggers the touchscreen interrupt unconditionally. This prevents hanging of the touchscreen in case of bogus interrupt occurence. Signed-off-by: Pavel Revak <[email protected]> Acked-by: Marek Vasut <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-21Input: ucb1400_ts - enable ADC FilterMarek Vasut1-0/+9
This patch enables ADC filtering on UCB1400 codec by default. The benefit from this change is mostly on some Colibri boards where the ADCSYNC pin of the UCB1400 codec isn't connected causing the touchscreen to jitter very badly. This change has no visible effect on boards where the ADCSYNC pin is connected. Signed-off-by: Marek Vasut <[email protected]> Tested-by: Palo Revak <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-21Input: wacom - don't use on-stack memory for report buffersDmitry Torokhov1-14/+29
Tested-by: Martin Capitanio <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-20Input: xpad - add USB ID for the drumkit controller from Rock BandCorbin Simpson1-0/+2
Signed-off-by: Corbin Simpson <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-20Input: w90p910_keypad - rename driver name to match platformWan ZongShun1-3/+3
Signed-off-by: Wan ZongShun <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-19Input: iforce - support new revision of ACT LABS Force RSJiri Kosina2-0/+2
Reported-by: [email protected] Signed-off-by: Jiri Kosina <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-19Input: add new driver for Sentelic Finger Sensing PadTai-hwa Liang7-4/+1012
This is the driver for Sentelic Finger Sensing Pad which can be found on MSI WIND Netbook. Signed-off-by: Tai-hwa Liang <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-19Input: psmouse - allow defining read-only attributesDmitry Torokhov1-5/+16
Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-12Input: joydev - decouple axis and button map ioctls from input constantsStephen Kitt1-27/+41
The KEY_MAX change in 2.6.28 changed the values of the JSIOCSBTNMAP and JSIOCGBTNMAP constants; software compiled with the old values no longer works with kernels following 2.6.28, because the ioctl switch statement no longer matches the values given by the software. This patch handles these ioctls independently of the length of data specified, and applies the same treatment to JSIOCSAXMAP and JSIOCGAXMAP which currently depend on ABS_MAX. Signed-off-by: Stephen Kitt <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-12Input: eeti_ts - allow active high irq linesDaniel Mack1-3/+19
This adds a struct eeti_ts_platform_data which currently holds only one value to specify the interrupt polarity. The driver has a fallback if no platform data is passed in via the i2c_board_info, so no regression is caused. Signed-off-by: Daniel Mack <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-09Input: w90p910_keypad - adjust to use definitions from matrix_keypad.hDmitry Torokhov1-79/+65
Also have the driver send MSC_SCAN events as most keyboards do to aid in updating keymap from userspace. Tested-by: Wan ZongShun <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-09Input: add keypad driver for w90p910Wan ZongShun3-0/+316
Add keypad driver for the 4x4 keypad on an evaluation board based on w90p910. Signed-off-by: Wan ZongShun <[email protected]> Reviewed-by: Trilok Soni <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-09Input: combine hil_kbd and hil_ptr driversDmitry Torokhov5-493/+219
hil_kbd and hil_ptr look like twins so it makes sense to combine them into a single driver. [[email protected]: add MODULE_ALIAS() entry for mouse] Tested-by: Helge Deller <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-09Input: hil_kbd - prepare for merging with hil_ptrDmitry Torokhov1-78/+78
Rename functions and variables from [hil_]kbd to [hil_]dev in preparation of merging hil_kbd and hil_ptr. Tested-by: Helge Deller <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-09Input: hil_kbd - switch to use completion instead of semaphoreDmitry Torokhov1-132/+140
Stop abusing semaphore for waiting, use completion instead. Also handle errors from input_register_device. Tested-by: Helge Deller <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-08Input: wistron_btns - switch to using dev_pm_opsDmitry Torokhov1-29/+37
Also start using 'bool' where it makes sense. Tested-by: Giuseppe Mazzotta <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-07Merge branch 'for-linus' of ↵Linus Torvalds3-9/+33
git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: matrix_keypad - make matrix keymap size dynamic Input: wistron_btns - support Prestigio Wifi RF kill button Input: i8042 - add Asus G1S to noloop exception list
2009-08-05Input: matrix_keypad - make matrix keymap size dynamicEric Miao1-9/+9
Remove assumption on the shift and size of rows/columns form matrix_keypad driver. Signed-off-by: Eric Miao <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-05Input: wistron_btns - support Prestigio Wifi RF kill buttonTJ1-0/+16
The Prestigio 157, an old no-name clone laptop uses input keys very similar to the Wistron 1557/MS2141 with the addition of BIOS-controlled wireless radio frequency kill switch. This patch adds support for the RF kill switch control and adds manual identification of the model. The Prestigio does not expose any recognisable identity via dmidecode and so requires manual selection at module init using force=1 keymap=prestigio Signed-off-by: TJ <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-05Input: serio - don't use serio->write() directlyDmitry Torokhov6-86/+91
We have a nice wrapper for that. Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-05Input: hgpk - forced recalibration for the OLPC touchpadPaul Fox1-3/+52
The OLPC XO laptop incorporates a combination touchpad/tablet device which unfortunately requires frequent recalibration. The driver will force this automatically when various suspicious behaviors are observed, and the user can recalibrate manually (with a special keyboard sequence). There's currently no way, however, for an external program to cause recalibration. We can not use the reconnect capability which is already available in /sys because full reset of the touchpad takes 1.1 - 1.2 secons which is too long. This patch creates a new node in /sys which, when written with '1', will force a touchpad recalibration; no other writes (or reads) of this node are supported. Signed-off-by: Paul Fox <[email protected]> Acked-by: Andres Salomon <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-05Input: i8042 - add Asus G1S to noloop exception listJory A. Pratt1-0/+8
The synaptic touchpad on the Asus G1S is not properly detected when rebooting machine or on cold boot from time to time. Adding the Asus G1S to the noloop exception table resolves the issue. # dmidecode 2.10 SMBIOS 2.4 present. Handle 0x0001, DMI type 1, 27 bytes System Information Manufacturer: ASUSTeK Computer Inc. Product Name: G1S Version: 1.0 Wake-up Type: Power Switch SKU Number: Family: Signed-off-by: Jory A. Pratt <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-04Input: tsc2007 - check if I2C communication works during probeRichard Röjfors1-3/+5
Check the result when sending the power down command to the controller. Signed-off-by: Richard Röjfors <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-04Input: tsc2007 - make get_pendown_state platform callback optionalDmitry Torokhov1-79/+93
In cases when get_pendown_state callback is not available have the driver to fallback on pressure calculation to determine if the pen is up. Signed-off-by: Dmitry Torokhov <[email protected]>
2009-08-02parisc: hp_sdc_mlc.c - check return value of down_trylock()Helge Deller1-1/+1
Signed-off-by: Helge Deller <[email protected]>
2009-07-27Input: usbtouchscreen - add support for e2i touchscreen controllerFlorian Echtler2-0/+54
This patch adds support for the e2i touchscreen controller used in the Mimo 740 (and probably in other e2i touchscreen products). Tested on Mimo 740. Signed-off-by: Florian Echtler <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>