aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-07-30Input: gpio_keys - return proper error code if memory allocation failsTobias Klauser1-1/+1
Return -ENOMEM if kzalloc fails in gpio_keys_get_devtree_pdata(). Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-30Input: lm8323 - add missing device_remove_file for dev_attr_timeAxel Lin1-2/+7
Add missing device_remove_file() for dev_attr_time in lm8323_remove(). Also calling device_remove_file() in lm8323_probe() error path to remove sysfs attribute file. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-30Input: tegra-kbc - fix computation of polling timeRakesh Iyer1-2/+3
Fix a constant definition and computation of polling time. [[email protected]: switched to using DIV_ROUND_UP as was suggested by Thierry Reding <[email protected]>] Signed-off-by: Rakesh Iyer <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-30Input: kxtj9 - explicitly include module.hStephen Rothwell1-0/+1
We need to explicitly include module.h since some of its facilities are used. Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-30Input: psmouse - hgpk.c needs module.hRandy Dunlap1-0/+1
hgpk.c uses interfaces from linux/module.h, so it should include that file. This fixes build errors. Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-27Merge branch 'next' into for-linusDmitry Torokhov7903-383404/+474372
2011-07-25Input: synaptics - fix reporting of min coordinatesDmitry Torokhov1-1/+1
We were testing wrong bit in the extended capability query. Reported-by: Daniel Kurtz <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-25Input: tegra-kbc - enable key autorepeatRakesh Iyer1-1/+1
To support key repeats, keyboard needs to be setup as an autorepeating device. Signed-off-by: Rakesh Iyer <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-19Input: kxtj9 - fix locking typo in kxtj9_set_poll()Dan Carpenter1-1/+1
According to the comments we want to call mutex_lock() here instead of mutex_unlock(). That makes more sense. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-19Input: kxtj9 - fix bug in probe()Dan Carpenter1-1/+1
We are testing the wrong variable here. I believe tj9->input_dev is always NULL at this point, so probe() will fail. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-18Input: intel-mid-touch - remove pointless checking for variable 'found'Axel Lin1-10/+5
The implementation does break from the for loop after we assign 'i' to variable 'found'. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-18Input: hp_sdc - staticize hp_sdc_kicker()Axel Lin1-1/+1
It's not referenced outside this file so there's no need for it to be in the global name space. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-18Input: pmic8xxx-keypad - fix a leak of the IRQ during init failureAxel Lin1-4/+4
Make sure we are passing the same cookie in all calls to request_any_context_irq() and free_irq(). Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-18Input: cy8ctmg110_ts - set reset_pin and irq_pin from platform dataAxel Lin1-0/+2
The implementation in cy8ctmg110_probe() does not properly set reset_pin and irq_pin from platform data. Let's fix it. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-13Input: cy8ctmg110_ts - constify i2c_device_id tableAxel Lin1-1/+1
Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-13Input: cy8ctmg110_ts - fix checking return value of i2c_master_sendAxel Lin1-2/+2
i2c_master_send returns negative errno, or else the number of bytes written. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-13Input: lifebook - make dmi callback functions return 1Axel Lin1-2/+2
We only care about if there is a successful match from the table (or no match at all), so let's make dmi_check_system return immediately instead of iterating thorough the whole table. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-13Input: atkbd - make dmi callback functions return 1Axel Lin1-2/+2
We only care about if there is a successful match from the table (or no match at all), so let's make dmi_check_system return immediately instead of iterating thorough the whole table. Make the dmi callback function return 1 then dmi_check_system will return immediately if we have a successful match. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-10Input: gpio_keys - switch to using SIMPLE_DEV_PM_OPSDmitry Torokhov1-8/+3
This reduces amount #ifdeds in the code. Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-10Input: gpio_keys - add support for device-tree platform dataDavid Jander2-16/+168
This patch enables fetching configuration data, which is normally provided via platform_data, from the device-tree instead. If the device is configured from device-tree data, the platform_data struct is not used, and button data needs to be allocated dynamically. Big part of this patch deals with confining pdata usage to the probe function, to make this possible. Signed-off-by: David Jander <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-10Input: aiptek - remove double defineEdwin van Vliet1-1/+0
Constant AIPTEK_TOOL_BUTTON_PEN_MODE was defined twice. Signed-off-by: Edwin van Vliet <[email protected]> Reviewed-by: Jesper Juhl <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-09Input: synaptics - set minimum coordinates as reported by firmwareDmitry Torokhov2-21/+43
Newer Synaptics firmware allows to query minimum coordinates reported by the device, let's use this data. Acked-by: Chase Douglas <[email protected]> Acked-by: Henrik Rydberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-06Input: synaptics - process button bits in AGM packetsDaniel Kurtz1-16/+16
AGM packets contain valid button bits, too. This patch refactors packet processing to parse button bits in AGM packets. However, they aren't actually used or reported. The point is to more completely process AGM packets, and prepare for future patches that may actually use AGM packet button bits. Signed-off-by: Daniel Kurtz <[email protected]> Acked-by: Chase Douglas <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-06Input: synaptics - rename set_slot to be more descriptiveDaniel Kurtz1-7/+10
Signed-off-by: Daniel Kurtz <[email protected]> Acked-by: Chase Douglas <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-06Input: synaptics - fuzz position for touchpad with reduced filteringDaniel Kurtz2-10/+15
Synaptics touchpads indicate via a capability bit when they perform reduced filtering on position data. In such a case, use a non-zero fuzz value. Fuzz = 8 was chosen empirically by observing the raw position data reported by a clickpad indicating it had reduced filtering. Signed-off-by: Daniel Kurtz <[email protected]> Acked-by: Chase Douglas <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-06Input: synaptics - set resolution for MT_POSITION_X/Y axesDaniel Kurtz1-0/+3
Set resolution for MT_POSITION_X and MT_POSITION_Y to match ABS_X and ABS_Y, respectively. Signed-off-by: Daniel Kurtz <[email protected]> Acked-by: Chase Douglas <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-06Input: wacom - cleanup a return value for the old BambooPing Cheng1-1/+1
The old code may call input_sync() without sending any other events. While it will be suppressed by the input core not calling it at all is still cheaper. Signed-off-by: Ping Cheng <[email protected]> Reviewed-by: Chris Bagwell <[email protected]> Reviewed-by: Henrik Rydberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-06Input: wacom - update Graphire4 and old Bamboo tablet buttonsPing Cheng1-11/+8
Bamboo touch sets BTN_BACK, BTN_FORWARD, BTN_LEFT, and BTN_RIGHT as the default button events for tablet buttons. Change Graphire4 and old Bamboo to the same settings. Signed-off-by: Ping Cheng <[email protected]> Reviewed-by: Chris Bagwell <[email protected]> Reviewed-by: Henrik Rydberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-06Input: wacom - add serial number for Graphire4 and old BambooPing Cheng1-0/+1
With the removal of BTN_TOOL_FINGER for tablet buttons and expresskeys, serial number is needed to distingush if the events were from a regular tool (stylus, eraser, or mouse) or the attribures (buttons, strips, or wheels) on the tablet since there are overlapped events between the tools and the tablet attributes. Signed-off-by: Ping Cheng <[email protected]> Reviewed-by: Chris Bagwell <[email protected]> Reviewed-by: Henrik Rydberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-06Input: wacom - remove BTN_TOOL_FINGER for padPing Cheng1-11/+0
BTN_TOOL_FINGER was designed to indicate a single finger touch. Remove the lines that borrowed this type for expresskeys and tablet buttons. Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-06Input: add support for Kionix KXTJ9 accelerometerChris Hudson4-0/+759
Signed-off-by: Chris Hudson <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-04Input: add guarding parentheses to macrosSimon Budig1-3/+3
Put parentheses around macro argument uses. This avoids pitfalls for the programmer, where the argument expansion does not give the expected result, for example: ioctl (fd, EVIOCGABS (have_mt ? ABS_MT_POSITION_X : ABS_X), &abs); Signed-off-by: Simon Budig <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-04Input: wm97xx - mark channels which need pen_downWolfram Sang3-15/+20
Currently, battery drivers also use poll_sample() provided by the wm97xx-core but this code always checks if the pen is down. Mark the channels which really need this (i.e. for the touchscreen) with the PEN_DOWN bit, and skip the checks otherwise. Now, the battery channels can always be read. Signed-off-by: Wolfram Sang <[email protected]> Acked-by: Mark Brown <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-04Input: wm97xx - refactor channel selection in poll_sample()Wolfram Sang4-31/+25
The current implementation of poll_sample() has the problem that one of its arguments, the channel to be selected, differs from wm9713 to other variants. This parameter gets passed to the (currently unused) mach-specific functions pre_sample() and post_sample() which thus have to deal with codec-specific differences. Refactor the routine so that the argument to poll_sample() is generic for all codecs and do necessary conversions only in the codec-specific driver. The outcome even uses less code and removes the non-standard use of the PEN_DOWN bit to mark the AUX-channels. Signed-off-by: Wolfram Sang <[email protected]> Acked-by: Mark Brown <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-04Input: wm97xx - remove redundant defineWolfram Sang5-11/+10
Signed-off-by: Wolfram Sang <[email protected]> Acked-by: Mark Brown <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-04Input: xen-kbdfront - enable driver for HVM guestsStefano Stabellini1-1/+1
Signed-off-by: Stefano Stabellini <[email protected]> Acked-by: Konrad Rzeszutek Wilk <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-04Input: xpad - enable rumble support for XBox360 Wireless ControllersChris Moeller1-4/+21
This patch implements rumble support for XBox360 Wireless Controllers. Signed-off-by: Chris Moeller <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-04Input: sh_keysc - fix compile warningDmitry Torokhov1-1/+1
The "#if" above should really be an "#ifdef" to avoid this warning: CC drivers/input/keyboard/sh_keysc.o drivers/input/keyboard/sh_keysc.c:294:5: warning: "CONFIG_PM_SLEEP" is not defined Reported-by: Magnus Damm <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-04Input: atmel_mxt_ts - handle objects with multiple instances correctlyIiro Valkonen1-2/+4
Handle the objects with multiple instances correctly when the configuration data is loaded. Signed-off-by: Iiro Valkonen <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-04Input: atmel_mxt_ts - update object listIiro Valkonen1-82/+102
Update the object list to include new objects, and add unique identifiers so we can distinguish between old & new generation of the same object. Signed-off-by: Iiro Valkonen <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-06-29Input: mpr121 - improve sensibility of touch keyJiejing Zhang1-4/+12
The Quick Charge bit in Electrode conf register should be set in init function. This bit was missed in chip's document, which may cause touch controller charge too slow to generate an interrupt. Also, adjust the default vlaue of touch and release threshold to make touch key more sensitive, this fix touch may not sensitive after setup with plastic case. Signed-off-by: Jiejing Zhang <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-06-29Input: add a driver to support InvenSense mpu3050 gyroscope chipJoseph Lai3-0/+387
This driver is registered as an input device. An IRQ is required in this basic driver configuration. Signed-off-by: Joseph Lai <[email protected]> [Cleaned up PM_RUNTIME defines] Signed-off-by: Alan Cox <[email protected]> [[email protected]: consolidated PM methods, some code rearrangement] Signed-off-by: Dmitry Torokhov <[email protected]>
2011-06-29Input: update author email for gpio_mouse, at32psif, and atmel-wm97xxHans-Christian Egtvedt3-3/+3
This patch updates the email address of the gpio_mouse, at32psif, and atmel-wm97xx drivers supported by me to an email account I will use on a more regular basis in the future. Signed-off-by: Hans-Christian Egtvedt <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-06-29Input: gpio_keys - fix a memory leakAxel Lin1-0/+1
Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-06-27Input: ads7846 - cleanup GPIO initializationIgor Grinberg1-10/+5
Use gpio_request_one() instead of multiple gpiolib calls. This also simplifies error handling a bit. Signed-off-by: Igor Grinberg <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-06-27Input: wacom - add 3 new models - 6A, 6B, and 97Ping Cheng1-0/+12
Tested-by: Alex Tervoort <[email protected]> for 6A Signed-off-by: David Foley <[email protected]> Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-06-27Input: wacom - Wacom Bamboo Pen D4 has 1024 pressure levelsPing Cheng1-1/+1
D4 has 1024, not 512, pressure levels. Reported-by: David Foley <[email protected]> Signed-off-by: Ping Cheng <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-06-27Input: gpio_keys - move to late_initcallDavid Jander1-1/+1
Initialize gpio_keys driver at late_initcall level, to give it a chance to work with GPIO expanders that might not be ready yet if we initialize the driver at module_init time. This is strictly a band-aid until there is a better way to specify inter-device dependencies. Signed-off-by: David Jander <[email protected]> Acked-by: Grant Likely <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-06-27Input: tnetv107x-ts - fix MODULE_ALIASAxel Lin1-1/+1
Remove the space between "platform:" prefix and the driver name. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2011-06-27Input: tnetv107x-keypad - fix MODULE_ALIASAxel Lin1-1/+1
Remove the space between "platform:" prefix and the driver name. Signed-off-by: Axel Lin <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>