summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Input: add support for Nomadik SKE keypad controllerSundar Iyer2010-10-134-0/+469
| | | | | | | | | Add support for the keypad controller in the Scroll Key Encoder (SKE) module on the Nomadik family and the DB8500 SoC. Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Sundar Iyer <sundar.iyer@stericsson.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: twl4030_keypad - fix error handling pathDmitry Torokhov2010-10-131-4/+3
| | | | | | | We should not try to call free_irq() when request_irq() failed. Reported-by: G, Manjunath Kondaiah <manjugk@ti.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: return -ENOMEM in select drivers when memory allocation failsDavidlohr Bueso2010-10-134-4/+4
| | | | | | | Instead of using -1 let's start using proper error codes. Signed-off-by: Davidlohr Bueso <dave@gnu.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: emu10k1 - do not leave device enabled when probe failsDmitry Torokhov2010-10-131-18/+25
| | | | | | | Rework emu_probe() to make sure we leave the device disabled if probe fails for any reason. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: hil_kbd - add missing MODULE_DEVICE_TABLE()Dzianis Kahanovich2010-10-131-0/+2
| | | | | Signed-off-by: Dzianis Kahanovich <mahatma@eu.by> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: sysrq - add locking to sysrq_filter()Dmitry Torokhov2010-09-291-3/+12
| | | | | | | | Similarly to the keyboard handler, we are called by different input devices and thus need to add spinlock if we want to maintain our state properly. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: i8042 - use unsigned char for 0x90Christoph Fritz2010-09-291-1/+1
| | | | | | | Keep the file consistent and make clear that we mean 144 instead of -112. Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: fm801-gp - add missing call to pci_disable_device()Dmitry Torokhov2010-09-292-6/+7
| | | | Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: emu10k1-gp - add missing calls to pci_disable_device()Rahul Ruikar2010-09-291-0/+2
| | | | | | | | | pci_disable_device() is called for following 2 cases - error path in emu_probe() - in emu_remove() Signed-off-by: Rahul Ruikar <rahul.ruikar@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: hanwang - add support for Art Master HD 5012 tabletXing Wei2010-09-291-21/+73
| | | | | | | This adds support for hanwang Art Master HD 5012 electromagnetic tablet. Signed-off-by: Xing Wei <weixing@hanwang.com.cn> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: hid-input - allow mapping unknown usagesDmitry Torokhov2010-09-151-4/+9
| | | | | | | | | | | | | | | Currently HID layer only allows to remap keycodes for known usages, and responds with -EINVAL when user tries to map new usage code. This precludes us form relying on udev/keymap for establishing correct mappings and forces us to write dummy HID drivers responsible only for setting up keymaps. Let's allow remapping not only usages that have been set up as keys (usage->type == EV_KEY) but also yet-unmapped usages (usage->type == 0). Acked-by: Jarod Wilson <jarod@redhat.com> Acked-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: ati_remote2 - switch to using new keycode interfaceDmitry Torokhov2010-09-151-28/+65
| | | | | | | | | | | Switch the code to use new style of getkeycode and setkeycode methods to allow retrieving and setting keycodes not only by their scancodes but also by index. Acked-by: Ville Syrjälä <syrjala@sci.fi> Tested-by: Jarod Wilson <jarod@wilsonet.com> Tested-by: Ville Syrjälä <syrjala@sci.fi> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: gameport_driver - drop private pointerDmitry Torokhov2010-09-141-2/+0
| | | | | | Nobody uses it anymore. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: gameport_driver - mark description as const pointerDmitry Torokhov2010-09-141-1/+1
| | | | | | Memory pointed to by the pointer should not change. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: serio_driver - drop private pointerDmitry Torokhov2010-09-141-1/+0
| | | | | | Nobody uses it anymore. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: serio_driver - mark id_table and description as constDmitry Torokhov2010-09-141-2/+2
| | | | | | Memory pointed to by these fields is not supposed to change. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: serio - do not include linux/freezer.hDmitry Torokhov2010-09-141-1/+0
| | | | | | | Commit ea486e681188d64c6a101d8d06414aef0f9f0cd3 changed kseriod thread to become not freezable so we do not need this include anymore. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: hanwang - make compatible with xf86-input-wacom driverXing Wei2010-09-121-4/+33
| | | | | | | | Add necessary events so that Hanwang Art Master III tablet can be handled by the stock xf86-input-wacom driver. Signed-off-by: Xing Wei <weixing@hanwang.com.cn> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: wacom - disable Bamboo touchpad when pen is being usedChris Bagwell2010-09-121-1/+7
| | | | | | Signed-off-by: Chris Bagwell <chris@cnpbagwell.com> Acked-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: wacom - add support for Bamboo PenChris Bagwell2010-09-121-0/+79
| | | | | | | | | This adds support for Pen on Bamboo Pen and Bamboo Pen&Touch devices. Touchpad is handled by previous Bamboo Touch logic. Signed-off-by: Chris Bagwell <chris@cnpbagwell.com> Acked-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: wacom - move Bamboo Touch irq to its own functionChris Bagwell2010-09-121-4/+9
| | | | | | | | This is in preparation of pen support in same irq handler. Signed-off-by: Chris Bagwell <chris@cnpbagwell.com> Acked-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: wacom - request tablet data for Bamboo PensChris Bagwell2010-09-121-4/+5
| | | | | | | | | | | | | | | Bamboo P&T need to use second form of usb_set_report() to ask to report tablet data. With previous addition of Bamboo Touch, BTN_TOOL_TRIPLETAP is now used for both TABLETPC2FG and BAMBOO_PT types. So reduced check to match type=TABLETPC2FG. This change shows redundant check for !TABLETPC2FG in else statement. Signed-off-by: Chris Bagwell <chris@cnpbagwell.com> Acked-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: hid-input - switch to using new keycode interfaceDmitry Torokhov2010-09-091-33/+70
| | | | | | | | | Switch HID code to use new style of getkeycode and setkeycode methods to allow retrieving and setting keycodes not only by their scancodes but also by index. Acked-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: media/IR - switch to using new keycode interfaceDmitry Torokhov2010-09-092-132/+263
| | | | | | | | | Switch the code to use new style of getkeycode and setkeycode methods to allow retrieving and setting keycodes not only by their scancodes but also by index. Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: sparse-keymap - switch to using new keycode interfaceDmitry Torokhov2010-09-091-16/+65
| | | | | | | | | Switch sparse keymap library to use new style of getkeycode and setkeycode methods to allow retrieving and setting keycodes not only by their scancodes but also by index. Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: add support for large scancodesMauro Carvalho Chehab2010-09-094-86/+292
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Several devices use a high number of bits for scancodes. One important group is the Remote Controllers. Some new protocols like RC-6 define a scancode space of 64 bits. The current EVIO[CS]GKEYCODE ioctls allow replace the scancode/keycode translation tables, but it is limited to up to 32 bits for scancode. Also, if userspace wants to clean the existing table, replacing it by a new one, it needs to run a loop calling the ioctls over the entire sparse scancode space. To solve those problems, this patch extends the ioctls to allow drivers handle scancodes up to 32 bytes long (the length could be extended in the future should such need arise) and allow userspace to query and set scancode to keycode mappings not only by scancode but also by index. Compatibility code were also added to handle the old format of EVIO[CS]GKEYCODE ioctls. Folded fixes by: - Dan Carpenter: locking fixes for the original implementation - Jarod Wilson: fix crash when setting keycode and wiring up get/set handlers in original implementation. - Dmitry Torokhov: rework to consolidate old and new scancode handling, provide options to act either by index or scancode. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: cy8ctmg110 - add fuzz to ABS_X and ABS_Y to remove jitterJames Ketrenos2010-09-061-2/+2
| | | | | | | | | Without this the jitter on the touchscreen makes it hard to use for most GUI toolkits. Signed-off-by: James Ketrenos<jketreno@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: wacom - add a quirk for low resolution Bamboo devicesHenrik Rydberg2010-09-052-0/+11
| | | | | | | | | | | | | | The Bamboo Touch reports a sub-screen resolution of 480x320. The signal-to-noise ratio is only about 100, so filtering is needed in order to reduce the jitter to a usable level. However, the low resolution leads to round-off errors in the EWMA filter, resulting in extremely jerky pointer motion. This patch explicitly sets a higher resolution for those devices, and tells this to the completion handler via a low-resolution quirk. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Acked-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: wacom - add support for the Bamboo Touch trackpadHenrik Rydberg2010-09-052-0/+92
| | | | | | | | | | Add support for the Bamboo Touch trackpad, and make it work with both the Synaptics X Driver and the Multitouch X Driver. The device uses MT slots internally, so the choice of protocol is a given. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Acked-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: wacom - collect device quirks into single functionHenrik Rydberg2010-09-054-8/+24
| | | | | | | | | Collect device-specific code into a single function, and use quirks to flag specific behavior instead. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Acked-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: wacom - parse the Bamboo device familyPing Cheng2010-09-052-9/+37
| | | | | | | | | The Bamboo devices have multiple interfaces which need to be setup separately. Use the HID parsing mechanism to achieve that. Signed-off-by: Ping Cheng <pinglinux@gmail.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Input: wacom - add fuzz parameters to featuresHenrik Rydberg2010-09-053-4/+15
| | | | | | | | | | The signal-to-noise ratio varies between devices, but currently all devices are treated the same way. Add fuzz parameters to the feature struct, allowing for tailored treatment of devices. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Acked-by: Ping Cheng <pingc@wacom.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* Merge branch 'mrst-touchscreen' into nextDmitry Torokhov2010-09-059-879/+700
|\ | | | | | | | | Conflicts: drivers/input/touchscreen/Makefile
| * Input: mrst-touchscreen - move out of stagingDmitry Torokhov2010-09-018-17/+13
| | | | | | | | | | | | | | | | The driver is in reasonable shape now so let's move it out of staging. Acked-by: Alan Cox <alan@linux.intel.com> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
| * Staging: mrst-touchscreen - simplify en/disable of interrupts for NECAndy Ross2010-09-011-55/+5
| | | | | | | | | | | | | | | | | | | | | | Use 8 bit update commands instead of a 16 bit unaligned read/write pair which fails after the first few calls; the voodoo in the original doesn't seem to be required with this mechanism. Tested-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Andy Ross <andy.ross@windriver.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
| * Staging: mrst-touchscreen - fix channel allocationArjan van de Ven2010-09-011-17/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The touch screen driver tries to find a range of free channels (which are an array of bytes), by scanning for the "end of used channel" marker. However it tries to be WAAAAY too smart and does 32 bit logic on 8 bit quantities, and in the process completely gets it wrong (repeatedly read the same register instead of incrementing in the loop, assuming that if any of the 4 bytes in the 32 byte quantity is free, all four are free, returning the channel number divided by 4 rather than the actual first free channel number) On the setting side, the same mistakes are made by and large; changed this to just use the byte SCU write functions.... With these fixes we go from a completely non detected touchscreen to something that appears to completely get detected. (after also fixing the ordering issue that Jacobs patch should solve) Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
| * Staging: mrst-touchscreen - register platform interfaceAlek Du2010-09-011-33/+35
| | | | | | | | | | | | | | | | AC: Reworked to merge with upstream input device work from Dmitry et al. Signed-off-by: Alek Du <alek.du@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
| * Staging: mrst_touchscreen - more fixesDmitry Torokhov2010-09-011-479/+413
| | | | | | | | | | | | | | | | | | | | | | | | | | Changes: - switch to use threaded IRQ - more __devinit/__devexit annotations - rely on input core to remove jitter from events - global pointer removed - NEC/MAXIM/Freescale handling factored out Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
| * Staging: mrst_touchscreen - clean up input sideAlan Cox2010-09-015-81/+25
| | | | | | | | | | | | | | | | | | | | Fix most of the stuff that Dmitry pointed out. This leaves the mutex in IRQ and misuse of SPI to sort out. Also fix the build bits so it actually builds in staging - whoops. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: add support for PowerOn button on the AB8500 MFDSundar R Iyer2010-09-054-0/+188
| | | | | | | | | | | | | | | | Add the PowerOn (PonKey) button support to detect power on/off events. Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Sundar R Iyer <sundar.iyer@stericsson.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: fix a few typosDmitry Torokhov2010-09-052-4/+4
| | | | | | | | Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: wm97xx-core - add retries to wm97xx_read_aux_adcEric Millbrandt2010-09-051-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | Add logic to wm97xx_read_aux_adc() to retry reading the adc if the sample failed. This could occur if the previous sample was still in the return register or the sample timed-out. Also avoid a pathologic failure mode by disabling the digitizer and returning -EBUSY after 5 retries. Signed-off-by: Eric Millbrandt <emillbrandt@dekaresearch.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: wm97xx-core - simplify error path in wm97xx_probe()Axel Lin2010-09-051-2/+1
| | | | | | | | | | | | | | | | | | | | Use platform_device_del() instead of platform_device_unregister() in error handling path. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Acked-by: Mark Brown <broonie@opensoruce.wolfsonmicro.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: stmpe-ts - return -ENOMEM when memory allocation failsAxel Lin2010-09-051-3/+7
| | | | | | | | | | | | Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: stmpe-ts - remove input_free_device() in stmpe_ts_remove()Axel Lin2010-09-021-1/+0
| | | | | | | | | | | | | | It is forbidden to call input_free_device() after input_unregister_device(). Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: tsc2007 - fix a redundant assignment for pdataAxel Lin2010-09-021-1/+1
| | | | | | | | | | Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: tps6507x-ts - properly unregister input device on removalAxel Lin2010-09-021-1/+1
| | | | | | | | | | | | | | | | Once device is registered we should call input_unregister_device() instead of input_free_device(). Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: tps6507x-ts - add missing call to platform_set_drvdata()Axel Lin2010-09-021-0/+1
| | | | | | | | | | | | | | | | We call platform_get_drvdata() in tps6507x_ts_remove(), thus we should call platform_set_drvdata() in tps6507x_ts_probe(). Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: s3c2410_ts - fix s3c2410ts_probe error pathAxel Lin2010-09-021-1/+1
| | | | | | | | | | | | | | Use input_free_device() to free devices that have not been registered. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
* | Input: add support for Hanwang tabletsXing Wei2010-09-015-0/+386
| | | | | | | | | | | | | | | | Add support for Art Master III tablet of BeiJing HanwangTechnology Co, Ltd. Signed-off-by: Xing Wei <weixing@hanwang.com.cn> Acked-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
OpenPOWER on IntegriCloud