aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-11-29Input: gpio-keys-polled - honor 'autorepeat' setting in platform dataAlexander Shiyan1-1/+4
Signed-off-by: Alexander Shiyan <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-29Input: tca8418-keypad - switch to using managed resourcesDmitry Torokhov1-53/+25
Let's switch to using devm_*() interfaces to manage our resources, thus will simplify error unwinding a bit. Reviewed-by: Alban Bedel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-29Input: tca8418_keypad - increase severity of failures in probe()Dmitry Torokhov1-3/+3
Failures to build a keymap, request an IRQ, or register input device are fatal for the driver, therefore the messages should have "error" severity instead of "debug". Reviewed-by: Alban Bedel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-29Input: tca8418_keypad - move device ID tables closer to where they are usedDmitry Torokhov1-15/+14
This matches structure of most other input drivers. Reviewed-by: Alban Bedel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-29Input: tca8418_keypad - use dev_get_platdata() to retrieve platform dataDmitry Torokhov1-1/+1
We need to use proper accessor functions instead of directly poking into various structures. Reviewed-by: Alban Bedel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-29Input: tca8418_keypad - use a temporary variable for parent deviceDmitry Torokhov1-10/+10
Use a temporary variable for our parent device (coming from I2C client structure); we'll be also using it during conversion to managed resources. Reviewed-by: Alban Bedel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-29Input: tca8418_keypad - add support for shared interruptAlban Bedel1-3/+7
Signed-off-by: Alban Bedel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-29Input: tca8418_keypad - add support for device tree bindingsAlban Bedel2-27/+49
Signed-off-by: Alban Bedel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-27Input: remove Compaq iPAQ H3600 (Bitsy) touchscreen driverAlexander Shiyan3-492/+0
The kernel does not contain the symbol SA1100_BITSY so the driver is never compiled and can be removed safely. Signed-off-by: Alexander Shiyan <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-27Input: bu21013_ts - add support for Device Tree bootingLee Jones1-4/+46
Now we can register the BU21013_ts touch screen when booting with Device Tree enabled. Here we parse all the necessary components previously expected to be passed from platform data. Acked-by: Arnd Bergmann <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-27Input: bu21013_ts - move GPIO init and exit functions into the driverLee Jones3-97/+53
These GPIO init and exit functions have no place in platform data, they should be part of the driver instead, Acked-by: Arnd Bergmann <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-27Input: bu21013_ts - request regulator that actually existsLee Jones1-1/+1
Currently the BU21013 Touch Screen driver requests a regulator by the name of 'V-TOUCH', which doesn't exist anywhere in the kernel. The correct name, as referenced in platform regulator code is 'avdd'. Here, when we request a regulator, we use the correct name instead. Acked-by: Arnd Bergmann <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-27ARM: ux500: Strip out duplicate touch screen platform informationLee Jones1-19/+3
We're currently carrying two 'struct bu21013_platform_device's which are identical for no apparent reason. Here we remove the extra burden and apply the same information to the two different instances of the bu21012_tp driver registration. [Dmitry Torokhov: picked it up to (hopefully) reduce merge conflict with bu21013_ts update that follows.] Acked-by: Arnd Bergmann <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-27Input: gpio_keys - disable hardware on suspendJonas Aaberg1-5/+22
Disable hardware if active when suspending if the hw can not wake the system from suspend. [Dmitry Torokhov: use input_dev->users instead of a separate flag] Signed-off-by: Jonas Aaberg <[email protected]> Signed-off-by: Philippe Langlais <[email protected]> Reviewed-by: Bengt Jonsson <[email protected]> Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-27Input: gpio_keys - report initial state when opening the deviceDmitry Torokhov1-13/+26
Instead of reporting the initial stage when the device is registered we should do it when the device is opened (so there are users). Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-27Input: samsung-keypad - switch to using managed resourcesSachin Kamat1-72/+31
devm_* functions are device managed and make error handling and code simpler. While at it also fix error exit paths. Signed-off-by: Sachin Kamat <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-27Input: spear-keyboard - add clk_{un}prepare() supportVipul Kumar Samar1-0/+10
clk_{un}prepare is mandatory for platforms using common clock framework. Because for SPEAr we don't do anything in clk_{un}prepare() calls, just call them once in probe/remove. Signed-off-by: Vipul Kumar Samar <[email protected]> Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-25Input: imx_keypad - only set enabled columns to open-drainAndreas Pretzsch1-1/+2
In imx_keypad_inhibit(), all 8 columns were set to open-drain, in contrast to the rest of the driver, where only the enabled columns are modified/used. Contrary to the normal expectation, this also affects column I/Os not even mapped via IOMUX to the KPP hardware module but used as a GPIO. Therefore only init enabled columns to open-drain and leave all others with their default reset value of 0, i.e. totem-pole. Signed-off-by: Andreas Pretzsch <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-25Input: HIL - do not call tasklet_disable right before tasklet_killXiaotian Feng1-2/+0
We do not need to call tasklet_disable() before calling tasklet_kill() if taskelt does not reschedult itself. Signed-off-by: Xiaotian Feng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-24Input: twl4030-pwrbutton - switch to using TWL_MODULE_PM_MASTER definePeter Ujfalusi1-2/+1
To facilitate upcoming cleanup in twl stack switch from using TWL4030_MODULE_PM_MASTER define to usingTWL_MODULE_PM_MASTER. There are no functional changes. Signed-off-by: Peter Ujfalusi <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-24Input: stmpe-keypad - add support for Device Tree bindingsDmitry Torokhov3-9/+91
This patch allows the STMPE driver to be successfully probed and initialised when Device Tree support is enabled. Besides the usual platform data changes, we also separate the process of filling in the 'in use' pin bitmap, as we have to extract the information from Device Tree in the DT boot case. Acked-by: Arnd Bergmann <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-24Input: remove use of __devexitBill Pemberton141-149/+149
CONFIG_HOTPLUG is going away as an option so __devexit is no longer needed. Signed-off-by: Bill Pemberton <[email protected]> Acked-by: Mark Brown <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-24Input: remove use of __devinitBill Pemberton138-237/+234
CONFIG_HOTPLUG is going away as an option so __devinit is no longer needed. Signed-off-by: Bill Pemberton <[email protected]> Acked-by: Mark Brown <[email protected]> Acked-by: Javier Martinez Canillas <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-24Input: remove use of __devinitconstBill Pemberton4-4/+4
CONFIG_HOTPLUG is going away as an option so __devinitconst is no longer needed. Signed-off-by: Bill Pemberton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-24Input: remove use of __devinitdataBill Pemberton3-4/+4
CONFIG_HOTPLUG is going away as an option so __devinitdata is no longer needed. Signed-off-by: Bill Pemberton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-24Input: remove use of __devexit_pBill Pemberton141-142/+142
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer needed. Signed-off-by: Bill Pemberton <[email protected]> Acked-by: Russell King <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-24Input: serio - remove CONFIG_HOTPLUG ifdefsBill Pemberton1-11/+0
Remove conditional code based on CONFIG_HOTPLUG being false. It's always on now in preparation of it going away as an option. Signed-off-by: Bill Pemberton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-24Merge branch 'for-linus' into nextDmitry Torokhov5-19/+34
Bring in changes to ads7846 to avoid mereg conflicts.
2012-11-22Input: stmpe-ts - add DT support for stmpe touchscreenVipul Kumar Samar3-18/+91
This patch allows the STMPE Touchscreen driver to be successfully probed and initialised when Device Tree support is enabled. Bindings are mentioned in Documentation too. Signed-off-by: Vipul Kumar Samar <[email protected]> Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-21Input: wacom - add support for a new MT device (0x4001)Ping Cheng1-0/+4
It supports 10 fingers. Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-21Input: wacom - simplify type check for newer V5 devicesPing Cheng1-3/+1
The updated type enum enables this implementation. Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-21ARM - OMAP: ads7846: fix pendown debounce settingIgor Grinberg1-14/+20
Commit 97ee9f01 (ARM: OMAP: fix the ads7846 init code) have enabled the pendown GPIO debounce time setting by the below sequence: gpio_request_one() gpio_set_debounce() gpio_free() It also revealed a bug in the OMAP GPIO handling code which prevented the GPIO debounce clock to be disabled and CORE transition to low power states. Commit c9c55d9 (gpio/omap: fix off-mode bug: clear debounce settings on free/reset) fixes the OMAP GPIO handling code by making sure that the GPIO debounce clock gets disabled if no GPIO is requested from current bank. While fixing the OMAP GPIO handling code (in the right way), the above commit makes the gpio_request->set_debounce->free sequence invalid as after freeing the GPIO, the debounce settings are lost. Fix the debounce settings by moving the debounce initialization to the actual GPIO requesting code - the ads7846 driver. Signed-off-by: Igor Grinberg <[email protected]> Acked-by: Tony Lindgren <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-21Input: ads7846 - enable pendown GPIO debounce time settingIgor Grinberg2-3/+8
Some platforms need the pendown GPIO debounce time setting programmed. Since the pendown GPIO is handled by the driver, the debounce time should also be handled along with the pendown GPIO request. Signed-off-by: Igor Grinberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-21OMAP: nokia770: remove custom implementation of ads7846_get_pendown_stateDmitry Torokhov1-13/+1
The default implementation matches exactly our custom one so we can switch to using the default one. As a bonus the driver will take care of setting GPIO line for us. Tested-by: Aaro Koskinen <[email protected]> Acked-by: Tony Lindgren <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-20Input: matrix-keypad - add device tree supportAnilKumar Ch2-22/+143
Also the driver was modifued to take advantage of recent improvements in matrix_keypad_build_keymap() implementation, which automatically allocates memory for keymap. The driver was tested on AM335x EVM. Signed-off-by: AnilKumar Ch <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-18Input: mousedev - move /dev/input/mice to the correct minorDmitry Torokhov1-2/+2
When doing conversion to dynamic input numbers I inadvertently moved /dev/input/mice from c,13,63 to c,13,31. We need to fix this so that setups with statically populated /dev continue working. Tested-by: Krzysztof Mazur <[email protected]> Tested-by: Pavel Machek <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-14Input: marix-keymap - automatically allocate memory for keymapDmitry Torokhov1-1/+22
In device tree enabled setups requiring preallocated memory for storing keymap is quite often awkward, so let's provide an option of allocating it directly in matrix_keypad_build_keymap(). Reviewed-by: Alban Bedel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-10Input: add Retu power button driver.Aaro Koskinen3-0/+110
Signed-off-by: Aaro Koskinen <[email protected]> Acked-by: Felipe Balbi <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-10Input: HIL - remove one gotoRolf Eike Beer1-6/+5
This goto is only used to skip the next instruction, which can easily be done without a goto. Signed-off-by: Rolf Eike Beer <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-10Input: document new members of struct input_devHenrik Rydberg1-0/+3
Fixes kernel-doc warnings for the members added in 3.7-rc1. Signed-off-by: Henrik Rydberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-10Input: MT - document new 'flags' argument of input_mt_init_slots()Henrik Rydberg1-0/+4
Fixes new kernel-doc warning in input-mt.c: Warning(drivers/input/input-mt.c:38): No description found for parameter 'flags' Reported-by: Randy Dunlap <[email protected]> Signed-off-by: Henrik Rydberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-10Input: stmpe-ts - initialize the phys field in input deviceVipul Kumar Samar1-0/+1
Signed-off-by: Vipul Kumar Samar <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-10Input: stmpe-ts - switch to using managed resourcesViresh Kumar1-44/+23
This patch frees stmpe-ts driver from burden of freeing resources :) devm_* derivatives of multiple routines are used while allocating resources, which would be freed automatically by kernel. Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-10Input: stmpe-keyboard - switch to using managed resourcesViresh Kumar1-44/+28
This patch frees stmpe-keyboard driver from burden of freeing resources :) devm_* derivatives of multiple routines are used while allocating resources, which would be freed automatically by kernel. Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-10Input: spear-keyboard - switch to using managed resourcesViresh Kumar1-54/+23
This patch frees spear-keyboard driver from burden of freeing resources :) devm_* derivatives of multiple routines are used while allocating resources, which would be freed automatically by kernel. Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-10Input: spear-keyboard - fix for balancing the enable_irq_wakeDeepak Sikri1-3/+8
This patch handles the fix for unbalanced irq for the cases when enable_irq_wake fails, and a warning related to same is displayed on the console. The workaround is handled at the driver level. Signed-off-by: Deepak Sikri <[email protected]> Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-10Input: nomadik-ske-keypad - start using the apb_pclkUlf Hansson1-2/+20
Previously this clock was handled internally by the clockdriver, but now this is separate clk. So we need take care of it. Signed-off-by: Ulf Hansson <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-08Input: nomadik-ske-keypad - fixup use of clkUlf Hansson1-4/+10
Do proper error handling for clk and make sure clocks are being prepared|unprepared as well as enabled|disabled. Signed-off-by: Ulf Hansson <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-08Input: wacom - add support for 2 new multi-touch tablets (0x100 and 0x101)Ping Cheng3-3/+25
This adds support for the two new multi-touch tablets. Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-08Input: wacom - clean up device type codePing Cheng1-15/+38
Use switch instead of if statement to verify device types Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>