aboutsummaryrefslogtreecommitdiff
path: root/drivers/input
AgeCommit message (Collapse)AuthorFilesLines
2009-11-23Input: do not overwrite the first part of phys stringMárton Németh2-2/+2
Use strlcat() to append a string to the previously created first part. Signed-off-by: Márton Németh <[email protected]> Acked-by: Jiri Kosina <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-23Input: ads7846 - switch to using dev_vdbg()Pavel Machek1-16/+7
Signed-off-by: Pavel Machek <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-23Input: ads7846 - fix pressure reportingPavel Machek1-1/+1
On Zaurus, hx4700 and others pressure is reported inverted -- the lighter the pressure, the bigger numerical value. Signed-off-by: Pavel Machek <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-23Input: usbtouchscreen - remove unneeded usb_kill_urbOliver Neukum1-1/+1
usb_kill_urb() in disconnect is not needed as unregistering will cause close() to be called. Signed-off-by: Oliver Neukum <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-22Merge 7xx-iosplit-plat-merge with omap-fixesTony Lindgren1-3/+3
Merge branch '7xx-iosplit-plat-merge' into omap-for-linus
2009-11-20AT91: add touchscreen support for at91sam9g45ekesNicolas Ferre1-1/+1
New at91sam9g45ekes board provides a LCD with resistive touchscreen. This is the support of this feature by atmel_tsadcc driver. This also sets up platform parameters to be passed to the driver. Signed-off-by: Nicolas Ferre <[email protected]> Acked-by: Andrew Victor <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-20Input: atmel_tsadcc - use platform parametersNicolas Ferre1-6/+35
Add a number of plafrom dependent parameters to atmel_tsadcc. The touchscreeen driver can now take into account the slight differences that exist between IPs included in diferent products. This will also allow to adapt its behaivior to the caracteristics of the resistive panel used. Signed-off-by: Nicolas Ferre <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-20Input: atmel_tsadcc - rework setting touchscreen capabilitiesNicolas Ferre1-3/+3
Tiny patch for setting capabilities using input API function. Signed-off-by: Nicolas Ferre <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-20Input: ALPS - add support for touchpads with 4-directional buttonMaxim Levitsky1-35/+65
The touchpad on Acer Aspire 5720, 5520 and some other Aspire models (signature 0x73, 0x02, 0x50) has a button that can be rocked in 4 different directions. Make the driver to generate BTN_0..BTN_3 events in response. The Synaptics driver by default maps BTN_0 and BTN_1 to up and down, so there should be no visible changes with the old setup that generated BTN_FORWARD and BTN_BACK (also mapped to up and down). Signed-off-by: Maxim Levitsky <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-20Input: psmouse - rework setting of BTN_MIDDLE capabilityDmitry Torokhov5-31/+38
Do not start protocol detection assuming that middle mouse is present, instead let individual protocols explicitly set this capability. This fixes issue with Synaptics touchpads pretending that they have middle button when hardware clearly reports otherwise. Reported-and-tested-by: Andrey Borzenkov <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-20Input: lifebook - do not advertise unsupported buttonsDmitry Torokhov1-6/+7
The main input device of Lifebook touchscreens does not generate left/right/middle button events and therefore should not be advertising them in its capabilities. Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-20Input: elantech - do not advertise relative eventsDmitry Torokhov1-0/+1
Elantech touchpads work in absolute mode and do not generate relative events so they should not be advertising them. Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-20Input: touchkit_ps2 - do not advertise unsupported buttonsDmitry Torokhov1-1/+2
Touchkit PS/2 touchscreen does not have left/right/middle buttons and should not be advertising as capable of generating these events. Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-20Input: input-polldev - add sysfs interface for controlling poll intervalSamu Onkalo1-6/+105
Sysfs entry for reading and setting of the polling interval. If the interval is set to 0, polling is stopped. Polling is restarted when interval is changed to non-zero. sysfs entries: poll = current polling interval in msec (RW) max = max allowed polling interval (RO) min = min allowed polling interval (RO) Minimum and maximum limit for interval can be set while setting up the device. Interval can be adjusted even if the input device is not currently open. [[email protected]: add kernel doc markup for the new fields] Signed-off-by: Samu Onkalo <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-20Input: gpio_keys - seperate individual button setup to make code neaterBen Dooks1-40/+53
Move the code that deals with setting up each individual button out into a new function to reduce the indentation and allow us to common up some of the error recovery code. Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Simtec Linux Team <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-20Input: gpio_keys - use <linux/gpio.h> instead of <asm/gpio.h>Ben Dooks1-2/+1
The gpio keys driver should be using <linux/gpio.h> instead of <asm/gpio.h> Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Simtec Linux Team <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-20Input: gpio_keys - use dev_ macros to report informationBen Dooks1-7/+9
The gpio_keys driver is binding to a platform device but using pr_err() to report errors. Change to using dev_err() so that all messages are prefixed by the device name. Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Simtec Linux Team <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-20Input: ucb1400_ts - allow passing IRQ through platfrom_dataMarek Vasut1-4/+7
This patch allows UCB1400 to get IRQ GPIO from platform data. In case platform_data are not supplied or the IRQ supplied in the platform_data is negative, fall back to the old IRQ detection algorithm. Signed-off-by: Marek Vasut <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-16Input: lifebook - fix settings for CF-72Abner Holsinger1-2/+1
Panasonic CF-72 uses 6-byte protocol and does not need to be tied to a particular port. Signed-off-by: Abner Holsinger <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-16Input: psmouse - fix breakage introduced by b7802c5c1eaJiri Kosina1-1/+1
Commit b7802c5c1ea ("Input: psmouse - use boolean type") caused the synaptics_hardware variable to be completely useless, as it is constantly set to 'true' throughout the whole psmouse_extensions(). This was caused by the following hunk in the commit in question - int synaptics_hardware = 0; + bool synaptics_hardware = true; which is wrong and causes driver to issue extra reset when falling back to bare PS/2 protocol. Signed-off-by: Jiri Kosina <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-12Input: psmouse - remove unneeded '\n' from psmouse.proto parameterTakashi Iwai1-1/+1
The get parameter function should return a string without a life-feed. Otherwise you'll see additional empty line in sysfs parameters file. Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-12Input: atkbd - restore LED state at reconnectDmitry Torokhov1-0/+13
Even though input core tells us to restore LED state and repeat rate at resume keyboard may be reconnected either by request from userspace (via sysfs) or just by pulling it from the box and plugging it back in. In these cases we still need to restore state ourselves. Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-12Input: force LED reset on resumeDmitry Torokhov1-11/+18
We should be sending EV_LED event down to drivers upon resume even in cases when in-kernel state of the LED is off since device could come up with some leds turned on. Reported-and-tested-by: Mikko Vinni <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-10Input: fix locking in memoryless force-feedback devicesDmitry Torokhov2-24/+22
Now that input core acquires dev->event_lock spinlock and disables interrupts when propagating input events, using spin_lock_bh() in ff-memless driver is not allowed. Actually, the timer_lock itself is not needed anymore, we should simply use dev->event_lock as well. Also do a small cleanup in force-feedback core. Reported-by: kerneloops.org Reported-by: http://www.kerneloops.org/searchweek.php?search=ml_ff_set_gain Reported-by: Arjan van de Ven <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-10Merge branch '7xx-iosplit-plat' with omap-fixesTony Lindgren1-3/+3
2009-11-05Merge commit 'v2.6.32-rc6' into nextDmitry Torokhov9-68/+193
2009-11-04xen: move Xen-testing predicates to common headerJeremy Fitzhardinge1-0/+3
Move xen_domain and related tests out of asm-x86 to xen/xen.h so they can be included whenever they are necessary. Signed-off-by: Jeremy Fitzhardinge <[email protected]> Signed-off-by: Jesse Barnes <[email protected]>
2009-11-02Input: synaptic_i2c - make unnecessarily global functions staticDmitry Torokhov1-3/+3
Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-02Input: gpio-keys - use IRQF_SHAREDDmitry Eremin-Solenikov1-0/+1
There is nothing that disallows gpio-keys to share it's IRQ line w/ other drivers. Make it use IRQF_SHARED in request_irq(). An example of other driver with which I'd like to share IRQ line for GPIO buttons is ledtrig-gpio. Signed-off-by: Dmitry Eremin-Solenikov <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-02Input: winbond-cir - select LEDS_TRIGGERSDavid Härdeman1-0/+1
drivers/input/misc/winbond-cir.c depends on LEDS_TRIGGERS so add an appropriate select to drivers/input/misc/Kconfig Signed-off-by: David Härdeman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-02Input: i8042 - try to get stable CTR value when initializingDmitry Torokhov1-7/+28
If user presses keys while i8042 is being initialized there is a chance that keyboard data will be mistaken for results of Read Control Register command causing futher troubles. Work around this issue by reading CTR several times and stop when we get matching results. Reported-and-tested-by: Dave Young <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-11-02Merge commit 'v2.6.32-rc5' into for-linusDmitry Torokhov25-16/+2278
2009-10-26Input: add driver for Dynapro serial touchscreenTias Guns3-0/+219
This is a driver for Dynapro serial touchscreen, which used to be supported in Xorg. The driver needs updated inputattach utility to initialize serial port and create proper serio device before the driver will be bound to it. Signed-off-by: Tias Guns <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-21Input: atkbd - add a quirk for OQO 01+ multimedia keysJamie Lentin1-0/+36
OQO 01+ multimedia keys produce 6x on press, e0 6x upon release. As a result, Linux thinks that another key has been pressed (or is repeating), when it is actually a release of the same key. Mangle the release scancode when running on OQO so that driver recognizes it as such. Since the device does not have external PS/2 ports mangling is safe since there is no chance that an external keyboard is connected. Signed-off-by: Jamie Lentin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-20omap: headers: Move remaining headers from include/mach to include/platTony Lindgren1-3/+3
Move the remaining headers under plat-omap/include/mach to plat-omap/include/plat. Also search and replace the files using these headers to include using the right path. This was done with: #!/bin/bash mach_dir_old="arch/arm/plat-omap/include/mach" plat_dir_new="arch/arm/plat-omap/include/plat" headers=$(cd $mach_dir_old && ls *.h) omap_dirs="arch/arm/*omap*/ \ drivers/video/omap \ sound/soc/omap" other_files="drivers/leds/leds-ams-delta.c \ drivers/mfd/menelaus.c \ drivers/mfd/twl4030-core.c \ drivers/mtd/nand/ams-delta.c" for header in $headers; do old="#include <mach\/$header" new="#include <plat\/$header" for dir in $omap_dirs; do find $dir -type f -name \*.[chS] | \ xargs sed -i "s/$old/$new/" done find drivers/ -type f -name \*omap*.[chS] | \ xargs sed -i "s/$old/$new/" for file in $other_files; do sed -i "s/$old/$new/" $file done done for header in $(ls $mach_dir_old/*.h); do git mv $header $plat_dir_new/ done Signed-off-by: Tony Lindgren <[email protected]>
2009-10-18Input: add open and close methods for polled devicesSamu Onkalo2-3/+6
Optional open and close methods for preparing and closing the device. Signed-off-by: Samu Onkalo <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-18Input: hp_sdc_rtc - fix test in hp_sdc_rtc_read_rt()Roel Kluin1-1/+1
If left unsigned the hp_sdc_rtc_read_i8042timer() return value will not be checked correctly. Signed-off-by: Roel Kluin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-18Input: atkbd - consolidate force release quirks for volume keysHerton Ronaldo Krzesinski1-37/+14
Some machines share same key list for volume up/down release key quirks, use only one key list. Signed-off-by: Herton Ronaldo Krzesinski <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-18Input: logips2pp - model 73 is actually TrackMan FXDmitry Torokhov1-1/+1
Reported-and-tested-by: Harald Dunkel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-18Input: i8042 - add Sony Vaio VGN-FZ240E to the nomux listDmitry Torokhov1-0/+11
On this model, when KBD is in active multiplexing mode, acknowledgements to reset and get ID commands issued on KBD port sometimes are delivered to AUX3 port (touchpad) which messes up device detection. Legacy KBC mode works fine and since there are no external PS/2 ports on this laptop and no support for docking station we can safely disable active MUX mode. Tested-by: Carlos R. Mafra <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-14input: Remove BKL from hp_sdc_rtcThomas Gleixner1-2/+0
cycle_kernel_lock() was added during the big BKL pushdown. It should ensure the serializiation against driver init code. In this case there is nothing to serialize. Remove it. Signed-off-by: Thomas Gleixner <[email protected]> LKML-Reference: <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Dmitry Torokhov <[email protected]>
2009-10-14Input: fix locking issue in /proc/bus/input/ handlersDmitry Torokhov1-17/+48
input_devices_seq_start() uses mutex_lock_interruptible() to acquire the input_mutex, but doesn't properly handle the situation when the call fails (for example due to interrupt). Instead of returning NULL (which indicates that there is no more data) we should return ERR_PTR()-encoded error. We also need explicit flag indicating whether input_mutex was acquired since input_devices_seq_stop() is called whether input_devices_seq_start() was successful or not. The same applies to input_handlers_seq_start(). Reported-by: iceberg <[email protected]> Reviewed-by: Jiri Kosina <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-14Input: atkbd - postpone restoring LED/repeat rate at resumeDmitry Torokhov1-4/+15
We need to postpone restoring LED state and typematic settings until keyboard is finished reconnecting upon resume. Normally driver core and PM infrastructure takes care of proper ordering and dependencies, but or case actual reconnect is done asynchronously from kseriod. So while driver core thinks that keyboard was resumed and it is time to let input core run it's resume handlers in reality keyboard is not ready yet. The solution is to keep rescheduling work that adjusts LED and rate settings until keyboard is fully enabled. Reported-by: Carlos R. Mafra <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-13Input: add DaVinci Keypad DriverMiguel Aguilar3-0/+348
This driver enables keypad support on DaVinci platforms. DM365 is the only platform that uses this driver at the moment. Signed-off-by: Miguel Aguilar <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-13Input: vsxxxaa - change formatting style to match the rest of the kernelDmitry Torokhov1-199/+175
- no spaces between function name and opening parenthesis - switch statements were indented too much This makes checkpatch (and me) happy. Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-13Input: lkkbd - change formatting style to match the rest of the kernelDmitry Torokhov1-258/+238
- no spaces between function name and opening parenthesis - switch statements were indented too much This makes checkpatch (and me) happy. Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-13Input: atkbd - restore resetting LED state at startupDmitry Torokhov1-0/+26
Fix breakage caused by commit 9605fb48e1998935a5ee70c965f90ad1ac023add While the input core indeed takes care of restoring led state and typematic settings upon resume the driver still need to initialize them properly when registering a new device Reported-and-tested-by: Marin Mitov <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-12Input: add driver for Altera PS/2 controllerThomas Chou3-0/+209
This patch adds a new SERIO driver to support the Altera University Program PS/2 controller. [[email protected]: assorted cleanups] Signed-off-by: Thomas Chou <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-12Input: i8042 - make pnp_data_busted variable boolean instead of intDmitry Torokhov1-1/+1
This small snippet escaped last round of int -> bool conversion. Reported-by: Joe Perches <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2009-10-12Input: synaptics - add another Protege M300 to rate blacklistDmitry Torokhov1-0/+10
Apparently some of Toshiba Protege M300 identify themselves as "Portable PC" in DMI so we need to add that to the DMI table as well. We need DMI data so we can automatically lower Synaptics reporting rate from 80 to 40 pps to avoid over-taxing their keyboard controllers. Tested-by: Rod Davison <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>