aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-01-06Input: increase struct ps2dev cmdbuf[] to 8 bytesKamal Mostafa1-1/+1
Cypress PS/2 Trackpad (drivers/input/mouse/cypress_ps2.c) needs this larger cmdbuf[] to handle 8-byte packet responses. Signed-off-by: Kamal Mostafa <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2013-01-06Input: wacom - use new input-mt routinesPing Cheng2-61/+22
This patch brings wacom driver in-sync with input-mt changes made in release 3.7. Signed-off-by: Ping Cheng <[email protected]> Reviewed-by: Henrik Rydberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2013-01-06Input: wacom - prepare for syncing with input-mt changesPing Cheng1-40/+45
Henrik added new MT routines in release 3.7. This patch is to prepare for the use of new MT routines. In the newly added wacom_abs_set_axis() function, the first if-statement assigns ABS_X/Y for number of contacts less or equal to 2. So, it is single and 2 finger touch devices. Two finger touch devices are processed here since they will not use the updated input_mt_init_slots(), which does not offer benefit to those devices. input_mt_init_slots() will take care of ABS_X/Y assignment when flags are not zero. All touch devices with more than two contacts will use input_mt_init_slots() with non-zero flags. The second if-statement is for all MT devices, which include two finger touch devices. Signed-off-by: Ping Cheng <[email protected]> Reviewed-by: Henrik Rydberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2013-01-06Input: lm8323 - fix checking PWM interrupt statusNickolai Zeldovich1-1/+1
INT_PWM1 is already a bitmask, not the bit number, so shifting by INT_PWM1 is incorrect. Signed-off-by: Nickolai Zeldovich <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2013-01-04Input: qt2160 - add support for LEDsJavier Martin1-2/+139
Outputs x8..x0 of the qt2160 can have leds attached to it. This patch handles those outputs using the generic LED framework. The PWM controls available in the chip are used to achieve different levels of brightness. Signed-off-by: Javier Martin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2013-01-03Input: imx_keypad - add device tree supportLiu Ying2-18/+78
This patch adds device tree support for imx keypad driver. Signed-off-by: Liu Ying <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-24Input: adxl34x - default platform_data should not use defines from driverWolfram Sang1-1/+1
Only use the defines which are defined in the platform_data include file. Signed-off-by: Wolfram Sang <[email protected]> Acked-by: Michael Hennerich <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-24Input: adxl34x - make platform_data include self containedWolfram Sang1-0/+2
Since it suggests to use defines from input.h (ABS_X, ...), also include the file to make them available. Signed-off-by: Wolfram Sang <[email protected]> Acked-by: Michael Hennerich <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-24Input: adxl34x - don't set THRESH_TAP twiceWolfram Sang1-1/+0
The datasheet doesn't say anything about writing twice, so this was probably overlooked. Signed-off-by: Wolfram Sang <[email protected]> Acked-by: Michael Hennerich <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-24Input: adxl34x - consistently use read/write encapsulationWolfram Sang1-2/+2
Don't open code the AC_READ and AC_WRITE macros. Signed-off-by: Wolfram Sang <[email protected]> Acked-by: Michael Hennerich <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-24Input: wm831x-on - convert to devm_input_allocate_device()Mark Brown1-3/+1
Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-24Input: wm831x-ts - convert to devm_input_allocate_device()Mark Brown1-3/+1
Signed-off-by: Mark Brown <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-24Input: gpio_keys - defer probing if GPIO probing is deferredDmitry Torokhov1-1/+12
If of_get_gpio_flags() returns an error (as in case when GPIO probe is deferred) the driver would attempt to claim invalid GPIO. It should propagate the error code up the stack instead so that the probe either fails or will be retried later (in case of -EPROBE_DEFER). Cc: [email protected] Reported-by: Gabor Juhos <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-24Input: gpio_keys_polled - defer probing if GPIO probing is deferredGabor Juhos1-1/+12
If GPIO probing is deferred, the driver tries to claim an invalid GPIO line which leads to an error message like this: gpio-keys-polled buttons.2: unable to claim gpio 4294966779, err=-22 gpio-keys-polled: probe of buttons.2 failed with error -22 We should make sure that error code returned by of_get_gpio_flags (including -EPROBE_DEFER) is propagated up the stack. Cc: [email protected] Signed-off-by: Gabor Juhos <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-24Input: sentelic - only report position of first finger as ST coordinatesChristophe TORDEUX1-1/+1
Report only the position of the first finger as absolute non-MT coordinates, instead of reporting both fingers alternatively. Actual MT events are unaffected. This fixes horizontal and improves vertical scrolling with the touchpad. Cc: [email protected] Signed-off-by: Christophe TORDEUX <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-16Input: stmpe-ts - report BTN_TOUCH eventVipul Kumar Samar1-0/+2
stmpe touchscreen supports BTN_TOUCH event but doesn't report it. Add BTN_TOUCH reporting capability to the stmpe touchscreen driver. Signed-off-by: Vipul Kumar Samar <[email protected]> Reviewed-by: Viresh Kumar <[email protected]> Acked-by: Lee Jones <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-16Merge branch 'next' into for-linusDmitry Torokhov360-2829/+4367
Prepare first set of updates for 3.8 merge window.
2012-12-16Input: walkera0701 - fix crash on startupPeter Popovec1-3/+4
The driver's timer must be set up before enabling IRQ handler, otherwise bad things may happen. Reported-and-tested-by: Fengguang Wu <[email protected]> Signed-off-by: Peter Popovec <[email protected]> CC: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-10Input: matrix-keymap - provide a proper module licenseFlorian Fainelli1-0/+3
The matrix-keymap module is currently lacking a proper module license, add one so we don't have this module tainting the entire kernel. This issue has been present since commit 1932811f (Input: matrix-keymap - uninline and prepare for device tree support) Signed-off-by: Florian Fainelli <[email protected]> CC: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-03Input: gpio_keys_polled - switch to using gpio_request_one()Dmitry Torokhov1-10/+2
This saves us a few lines of code. Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-03Input: gpio_keys - switch to using gpio_request_one()Dmitry Torokhov1-9/+1
This saves us a few lines of code. Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-03Input: wacom - fix touch support for Bamboo Fun CTH-461Diego Calleja1-1/+2
Commit f393ee2b814e3291c12565000210b3cf10aa5c1d forgot to add the touch_max property for Wacom Bamboo Fun CTH-461/S, ID 056a:00d2. This broke the touch functionality for that device. This patch, (done with help of Ping Cheng), adds the correct value and makes touch work again. Signed-off-by: Diego Calleja <[email protected]> Reviewed-by: Ping Cheng <[email protected]> Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-03Input: xpad - add a few new VID/PID combinationsGuillermo A. Amaral1-9/+18
This adds VID/PID combinations for MadCatz, PDP and PowerA (new). Removed Pelican 'TSZ' Wired Xbox 360 Controller since it's clashing with Edge wireless Controller and I failed to confirm the PID. Signed-off-by: "Guillermo A. Amaral B." <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2012-12-03Input: xpad - minor formatting fixesGuillermo A. Amaral1-3/+3
Fixed a few minor coding style issues in xpad driver. Signed-off-by: "Guillermo A. Amaral B." <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
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]>