aboutsummaryrefslogtreecommitdiff
path: root/drivers/input
AgeCommit message (Collapse)AuthorFilesLines
2007-02-28Input: ads7846 - add support for the ads7843 touchscreenNicolas Ferre1-13/+15
The ads7843 support has now become almost trivial since the last rework. Signed-off-by: Nicolas Ferre <[email protected]> Acked-by: David Brownell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-19Merge branch 'for-linus' of ↵Linus Torvalds17-92/+109
master.kernel.org:/pub/scm/linux/kernel/git/dtor/input * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/dtor/input: Input: remove obsolete setup parameters from input drivers Input: HIL - fix improper call to release_region() Input: hid-lgff - treat devices as joysticks unless told otherwise Input: HID - add support for Logitech Formula Force EX Input: gpio-keys - switch to common GPIO API Input: do not lock device when showing name, phys and uniq Input: i8042 - let serio bus suspend ports Input: psmouse - properly reset mouse on shutdown/suspend
2007-02-18Input: add driver for MIPS Cobalt back panel buttonsYoichi Yuasa3-1/+220
Tested on Cobalt Qube2. Signed-off-by: Yoichi Yuasa <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-18Input: psmouse - add support for eGalax PS/2 touchscreen controllerStefan Lucke5-7/+139
Based on the touchkit USB and lifebook PS/2 touchscreen driver. The egalax touchsreen controller (PS/2 or USB version) is used in this 7" device: http://www.cartft.com/catalog/il/449 Signed-off-by: Michal Piotrowski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-18Input: remove obsolete setup parameters from input driversDmitry Torokhov10-39/+0
They have been marked as __obsolete_setup() for several years, it is time for them to go. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-18Input: HIL - fix improper call to release_region()Cyrill V. Gorcunov1-0/+2
Do not call release_region() if the code has been compiled without CONFIG_HP300 support. Signed-off-by: Cyrill V. Gorcunov <[email protected]> Acked-by: Helge Deller <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-18Input: gpio-keys - switch to common GPIO APIPhilipp Zabel2-10/+11
This adds support for at least SA1100 and S3C24xx CPUs. Signed-off-by: Philipp Zabel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-18Input: do not lock device when showing name, phys and uniqDmitry Torokhov1-15/+2
Now that sysfs attributes return -ENODEV once driver requests their removal we do not need to handle scenario when data is deleted from under our feet and can simplify the code. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-18Input: i8042 - let serio bus suspend portsDmitry Torokhov2-28/+64
Let serio subsystem take care of suspending the ports; concentrate on suspending/resuming the controller itself. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-18Input: psmouse - properly reset mouse on shutdown/suspendDmitry Torokhov3-0/+30
Some people report that they need psmouse module unloaded for suspend to ram/disk to work properly. Let's make port cleanup behave the same way as driver unload. This fixes "bad state" roblem on various HP laptops, such as nx7400. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-17Storage class should be before const qualifierTobias Klauser1-1/+1
The C99 specification states in section 6.11.5: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: Adrian Bunk <[email protected]>
2007-02-16[PATCH] hrtimers: namespace and enum cleanupThomas Gleixner1-5/+6
- hrtimers did not use the hrtimer_restart enum and relied on the implict int representation. Fix the prototypes and the functions using the enums. - Use seperate name spaces for the enumerations - Convert hrtimer_restart macro to inline function - Add comments No functional changes. [[email protected]: fix input driver] Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: john stultz <[email protected]> Cc: Roman Zippel <[email protected]> Cc: Dmitry Torokhov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-02-14[PATCH] Scheduled removal of SA_xxx interrupt flags fixups 2Thomas Gleixner1-1/+1
The obsolete SA_xxx interrupt flags have been used despite the scheduled removal. Fixup the remaining users in -mm. Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-02-14[PATCH] remove many unneeded #includes of sched.hTim Schmielau5-5/+1
After Al Viro (finally) succeeded in removing the sched.h #include in module.h recently, it makes sense again to remove other superfluous sched.h includes. There are quite a lot of files which include it but don't actually need anything defined in there. Presumably these includes were once needed for macros that used to live in sched.h, but moved to other header files in the course of cleaning it up. To ease the pain, this time I did not fiddle with any header files and only removed #includes from .c-files, which tend to cause less trouble. Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha, arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig, allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all configs in arch/arm/configs on arm. I also checked that no new warnings were introduced by the patch (actually, some warnings are removed that were emitted by unnecessarily included header files). Signed-off-by: Tim Schmielau <[email protected]> Acked-by: Russell King <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-02-12[PATCH] mark struct file_operations const 3Arjan van de Ven4-6/+6
Many struct file_operations in the kernel can be "const". Marking them const moves these to the .rodata section, which avoids false sharing with potential dirty data. In addition it'll catch accidental writes at compile time to these shared resources. Signed-off-by: Arjan van de Ven <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-02-11Merge branch 'for-linus' of ↵Linus Torvalds14-253/+843
git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: remove scan_keyb driver Input: i8042 - fix AUX IRQ delivery check Input: wistron - add support for Fujitsu-Siemens Amilo D88x0 Input: inport - use correct config option for ATIXL Input: HIL - handle erros from input_register_device() Input: tsdev - schedule removal Input: add Atlas button driver Input: ads7846 - be more compatible with the hwmon framework Input: ads7846 - detect pen up from GPIO state Input: ads7846 - select correct SPI mode Input: ads7846 - switch to using hrtimer Input: ads7846 - optionally leave Vref on during differential measurements Input: ads7846 - pluggable filtering logic Input: gpio-keys - keyboard driver for GPIO buttons Input: hid-ff - add support for Logitech Momo racing wheel Input: i8042 - really suppress ACK/NAK during panic blink Input: pc110pad - return proper error
2007-02-11[PATCH] Remove unnecessary memset(0) calls after kzalloc() calls.Robert P. J. Day1-1/+0
Delete the few remaining unnecessary calls to memset(0) after a call to kzalloc(). Signed-off-by: Robert P. J. Day <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Dmitry Torokhov <[email protected]> Cc: Adam Belay <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-02-10Input: i8042 - fix AUX IRQ delivery checkDmitry Torokhov1-1/+4
On boxes that do not implement AUX LOOP command we can not verify AUX IRQ delivery and must assume that it is wired properly. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-10Input: wistron - add support for Fujitsu-Siemens Amilo D88x0Michael Leun1-0/+20
Tested on a Amilo D8820. Signed-off-by: Michael Leun <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-10Input: inport - use correct config option for ATIXLRobert P. J. Day1-1/+1
Change the apparently incorrect check for CONFIG_INPUT_ATIXL in a source file to be consistent with the kernel config option CONFIG_MOUSE_ATIXL. Signed-off-by: Robert P. J. Day <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-10Input: HIL - handle erros from input_register_device()Cyrill V. Gorcunov1-48/+66
Also some whitespace cleanup. Signed-off-by: Cyrill V. Gorcunov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-10Input: tsdev - schedule removalRichard Purdie1-0/+4
Compaq touchscreen emulation (drivers/input/tsdev.c) is old, was obsolete when it was written by the authors own admission and much better userspace solutions like tslib now exist. The name is also confusing. Signed-off-by: Richard Purdie <[email protected]> Acked-by: James Simmons <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-10Input: add Atlas button driverJaya Kumar3-0/+181
This patch adds support for the buttons on the Atlas wallmount touchscreen. Signed-off-by: Jaya Kumar <[email protected]> Acked-by: Len Brown <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-10Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6Dmitry Torokhov8-8/+18
2007-02-09[ALSA] ucb1400_ts.c compilation fix (struct snd_ac97)Andrew Morton1-1/+1
From: Andrew Morton <[email protected]> Cc: Takashi Iwai <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
2007-02-07SERIO: add the sysfs driver name to all modulesGreg Kroah-Hartman1-2/+4
This adds the module name to all SERIO drivers, if they are built into the kernel or not. It will show up in /sys/modules/MODULE_NAME/drivers/ Cc: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2007-01-18Input: ads7846 - be more compatible with the hwmon frameworkDavid Brownell2-91/+224
- Hook up to hwmon * show sensor attributes only if hwmon is present * ... and the board's reference voltage is known * otherwise be just a touchscreen - Report voltages per hwmon convention * measure in millivolts * voltages are named in[0-8]_input (ugh) * for 7846 chips, properly range-adjust vBATT/in1_input Battery measurements help during recharge monitoring. On OSK/Mistral, the measured voltage agreed with a multimeter to several decimal places. Signed-off-by: David Brownell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-01-18Input: ads7846 - detect pen up from GPIO stateImre Deak1-39/+41
We can't depend on the pressure value to determine when the pen was lifted, so use the GPIO line state instead. This also helps with chips (like ads7843) that don't have pressure sensors. Signed-off-by: Imre Deak <[email protected]> Signed-off-by: Juha Yrjola <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-01-18Input: ads7846 - select correct SPI modeImre Deak1-0/+4
Talk to ADS7846 chip using SPI mode 1, which is what the chip supports: writes on falling clock edge, reads on rising. Signed-off-by: Imre Deak <[email protected]> Signed-off-by: Tony Lindgren <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-01-18Input: ads7846 - switch to using hrtimerImre Deak1-11/+15
Use hrtimer instead of the normal timer, since it provides better sampling resolution. This will: - avoid a problem where we have a 1 jiffy poll period and dynamic tick on - utilize high resolution HW clocks when they are added to the hrtimer framework Signed-off-by: Imre Deak <[email protected]> Signed-off-by: Juha Yrjola <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-01-18Input: ads7846 - optionally leave Vref on during differential measurementsImre Deak1-13/+17
On some LCDs leaving the Vref on provides much better readings. Signed-off-by: Jarkko Oikarinen <[email protected]> Signed-off-by: Imre Deak <[email protected]> Signed-off-by: Juha Yrjola <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-01-18Input: ads7846 - pluggable filtering logicImre Deak1-40/+95
Some LCDs like the LS041Y3 require a customized filtering logic for reliable readings, so make the filtering function replacable through platform specific hooks. Signed-off-by: Imre Deak <[email protected]> Signed-off-by: Juha Yrjola <[email protected]> Signed-off-by: David Brownell <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-01-18Input: gpio-keys - keyboard driver for GPIO buttonsPhil Blundell3-5/+166
This is an interrupt-driven keyboard driver for simple buttons connected directly to CPU GPIO lines of embedded ARM systems. It supports pxa architectures and is used by a number of PDAs and PocketPC phones in the handhelds.org kernel. Support for other architectures, such as sa11xx and sc2410, will be added once generic GPIO API is available. Signed-off-by: Paul Sokolovsky <[email protected]> Signed-off-by: Philipp Zabel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-01-18Input: i8042 - really suppress ACK/NAK during panic blinkDmitry Torokhov1-3/+4
On some boxes panic blink procedure manages to send both bytes to keyboard contoller before getting first ACK so we need to make i8042_suppress_kbd_ack a counter instead of boolean. Signed-off-by: Dmitry Torokhov <[email protected]>
2006-12-31[SPARC64]: Fix of_iounmap() region release.David S. Miller1-2/+4
We need to pass in the resource otherwise we cannot release the region properly. We must know whether it is an I/O or MEM resource. Spotted by Eric Brower. Signed-off-by: David S. Miller <[email protected]>
2006-12-21Input: pc110pad - return proper errorAkinobu Mita1-1/+1
The driver should return -ENODEV rather than -ENOENT when it detects a PCI device in the box. Signed-off-by: Akinobu Mita <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-12-17[SUNKBD]: Fix sunkbd_enable(sunkbd, 0); obvious.Fabrice Knevez1-1/+1
"sunkbd_enable(sunkbd, 0);" has no effect. Adding "sunkbd->enabled = enable" in sunkbd_enable (obvious) Signed-off-by: Fabrice Knevez <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2006-12-17[PATCH] m68k trivial build fixesAl Viro1-1/+1
amikbd: missing declaration sun3_NCR5380: more work_struct mess sun3_NCR5380: cast is not an lvalue Signed-off-by: Al Viro <[email protected]>
2006-12-13[PATCH] missing includes in hilkbdAl Viro1-0/+5
Now that it's built on m68k too... Signed-off-by: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-12-12[PATCH] remove config ordering/dependency between ucb1400-ts and sound subsystemNicolas Pitre1-1/+1
Commit 2d4ba4a3b9aef95d328d74a17ae84f8d658059e2 introduced a dependency that was never meant to exist when the ac97_bus.c module was created. Move ac97_bus.c up the directory hierarchy to make sure it is built when selected even if sound is configured out so things work as originally intended. Signed-off-by: Nicolas Pitre <[email protected]> Acked-by: Randy Dunlap <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-12-10[PATCH] ucb1400_ts depends SND_AC97_BUSRandy Dunlap1-1/+1
This driver is an AC97 codec according to its help text. However, if SOUND is disabled, the "select SND_AC97_BUS" still inserts that into the .config file: # # Sound # # CONFIG_SOUND is not set CONFIG_SND_AC97_BUS=m Even if the config software followed dependency chains on selects, we should try to limit usage of "select" to library-type code that is needed (e.g., CRC functions) instead of bus-type support. Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-12-08[PATCH] Generic HID layer - buildJiri Kosina1-0/+1
This modifies Makefiles and Kconfigs to properly reflect the creation of generic HID layer. It also removes the dependency of BROKEN, which was introduced by the first patch in series (see the comment). Also updates credits. Signed-off-by: Jiri Kosina <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]> Cc: Dmitry Torokhov <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
2006-12-08Input: ucb1400 - fix compile errorDmitry Torokhov1-1/+1
try_to_freeze() was moved into include/linux/freezer.h Signed-off-by: Dmitry Torokhov <[email protected]>
2006-12-08Input: kill maple_keyb.c driverPaul Mundt1-166/+0
The bus for this was removed entirely some time ago, as well as most of the drivers that referenced it. maple_keyb seems to have been the odd one out, and was still sitting in the source tree (though not actually part of the build system). Kill off the rest of it.. Signed-off-by: Paul Mundt <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2006-12-08Input: i8042 - add another Lifebook P7010 to nomux blacklistDmitry Torokhov1-0/+7
We already had entry for Fujitsu Lifebook P7010 in the nomux blacklist but for some reason Fujitsu decided to fiddle with DMI data... Signed-off-by: Dmitry Torokhov <[email protected]>
2006-12-08Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6Dmitry Torokhov11-26/+26
Conflicts: drivers/usb/input/hid.h
2006-12-07[PATCH] Correct misc_register return code handling in several driversNeil Horman1-1/+3
Clean up several code points in which the return code from misc_register is not handled properly. Several modules failed to deregister various hooks when misc_register fails, and this patch cleans them up. Also there are a few modules that legitimately don't care about the failure status of misc register. These drivers however unilaterally call misc_deregister on module unload. Since misc_register doesn't initialize the list_head in the init_routine if it fails, the deregister operation is at risk for oopsing when list_del is called. The initial solution was to manually init the list in the miscdev structure in each of those modules, but the consensus in this thread was to consolodate and do that universally inside misc_register. Signed-off-by: Neil Horman <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Kylene Jo Hall <[email protected]> Cc: Dmitry Torokhov <[email protected]> Cc: Olaf Hering <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-12-07[PATCH] Add include/linux/freezer.h and move definitions from sched.hNigel Cunningham2-0/+2
Move process freezing functions from include/linux/sched.h to freezer.h, so that modifications to the freezer or the kernel configuration don't require recompiling just about everything. [[email protected]: fix ueagle driver] Signed-off-by: Nigel Cunningham <[email protected]> Cc: "Rafael J. Wysocki" <[email protected]> Cc: Pavel Machek <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-12-07[PATCH] slab: remove SLAB_KERNELChristoph Lameter1-1/+1
SLAB_KERNEL is an alias of GFP_KERNEL. Signed-off-by: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-12-05Merge branch 'master' of ↵David Howells2-4/+4
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 Conflicts: drivers/infiniband/core/iwcm.c drivers/net/chelsio/cxgb2.c drivers/net/wireless/bcm43xx/bcm43xx_main.c drivers/net/wireless/prism54/islpci_eth.c drivers/usb/core/hub.h drivers/usb/input/hid-core.c net/core/netpoll.c Fix up merge failures with Linus's head and fix new compilation failures. Signed-Off-By: David Howells <[email protected]>