summaryrefslogtreecommitdiff
path: root/include/linux/input.h
AgeCommit message (Collapse)Author
2006-05-29Input: change from numbered to named switchesRichard Purdie
Remove the numbered SW_* entries from the input system and assign names to the existing users. Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2006-05-29Input: add KEY_BATTERY keycodeMatthew Garrett
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2006-04-29Input: ressurect EVIOCGREP and EVIOCSREPDmitry Torokhov
While writing to an event device allows to set repeat rate for an individual input device there is no way to retrieve current settings so we need to ressurect EVIOCGREP. Also ressurect EVIOCSREP so we have a symmetrical interface. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2006-04-26Input: move input_device_id to mod_devicetable.hDmitry Torokhov
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2006-04-26Input: allow passing NULL to input_free_device()Dmitry Torokhov
Many drivers rely on input_free_device() behaving like kfree(). Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2006-04-02Input: add support for Braille devicesSamuel Thibault
- Add KEY_BRL_* input keys and K_BRL_* keycodes; - Add emulation of how braille keyboards usually combine braille dots to the console keyboard driver; - Add handling of unicode U+28xy diacritics. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2006-04-02Manual merge with Linus.Dmitry Torokhov
Conflicts: arch/powerpc/kernel/setup-common.c drivers/input/keyboard/hil_kbd.c drivers/input/mouse/hil_ptr.c
2006-03-28[PATCH] mark f_ops const in the inodeArjan van de Ven
Mark the f_ops members of inodes as const, as well as fix the ripple-through this causes by places that copy this f_ops and then "do stuff" with it. Signed-off-by: Arjan van de Ven <arjan@infradead.org> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-14Input: fix input_free_device() implementationDmitry Torokhov
input_free_device can't just call kfree because if input_register_device fails after successfully registering corresponding class device there is a chance that someone could get a reference to it. We need to use input_put_device() to make sure that we don't delete input device until last reference to it was dropped. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2006-02-19Input: input core - semaphore to mutex conversionJes Sorensen
Signed-off-by: Jes Sorensen <jes@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2006-01-04[PATCH] Input: fix add modalias support build errorRusty Russell
Fix build when scripts/mod/file2alias.c includes linux/input.h, which tries to include /usr/include/linux/mod_devicetable.h: In file included from scripts/mod/file2alias.c:40: include/linux/input.h:21:35: linux/mod_devicetable.h: No such file or directory make[2]: *** [scripts/mod/file2alias.o] Error 1 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-01-04[PATCH] Input: add modalias supportRusty Russell
Here's the patch for modalias support for input classes. It uses comma-separated numbers, and doesn't describe all the potential keys (no module currently cares, and that would make the strings huge). The changes to input.h are to move the definitions needed by file2alias outside __KERNEL__. I chose not to move those definitions to mod_devicetable.h, because there are so many that it might break compile of something else in the kernel. The rest is fairly straightforward. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> CC: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-11-02Input: do not register statically allocated devicesDmitry Torokhov
Do not register statically allocated input devices to prevent OOPS when attaching input interfaces since it requires class device to be properly initialized. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2005-10-28Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6Linus Torvalds
2005-10-28[PATCH] INPUT: rename input_dev_class to input_class to be correct.Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-10-28[PATCH] INPUT: remove the input_class structure, as it is unused.Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-10-28[PATCH] INPUT: export input_dev_class so that input drivers can use it.Greg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-10-28[PATCH] Input: prepare to sysfs integrationDmitry Torokhov
Input: prepare to sysfs integration Add struct class_device to input_dev; add input_allocate_dev() to dynamically allocate input devices; dynamically allocated devices are automatically registered with sysfs. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-10-21[PARISC] Update parisc specific input code from parisc treeMatthew Wilcox
Update drivers to new input layer changes. Signed-off-by: Helge Deller <deller@parisc-linux.org> Signed-off-by: Matthew Wilcox <willy@parisc-linux.org> Reorder code in gscps2_interrupt() and only enable ports when opened. This fixes issues with hangs booting an SMP kernel on my C360. Previously serio_interrupt() could be called before the lock in struct serio was initialised. Signed-off-by: Richard Hirst <rhirst@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
2005-09-09Manual merge with LinusDmitry Torokhov
2005-09-07[PATCH] Input: Add a new switch event typeRichard Purdie
The corgi keyboard has need of a switch event type with slightly type to the input system as recommended by the input maintainer. Signed-off-by: Richard Purdie <rpurdie@rpsys.net> Cc: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-05Input: HID - add more consumer usagesVojtech Pavlik
Extend mapping of the consumer usage page in hid-input.c to handle more cases appearing on new USB keyboards. Signed-off-by: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2005-06-30Input: make name, phys and uniq be 'const char *' because onceDmitry Torokhov
set noone should attempt to change them. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2005-06-27Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/dtor/input.git manuallyLinus Torvalds
Some manual fixups required due to clashes with the PF_FREEZE cleanups.
2005-06-20[PATCH] INPUT: move to use the new class code, instead of class_simplegregkh@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-05-29Input: add semaphore and user count to input_dev structure;Dmitry Torokhov
serialize open and close calls and ensure that device's open and close methods are only called when first user opens it or last user closes it. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2005-05-01[PATCH] macintosh/adbhid.c: adb buttons support for aluminium PowerBook G4Andreas Jaggi
This patch adds support for the special adb buttons of the aluminium PowerBook G4. Signed-off-by: Andreas Jaggi <andreas.jaggi@waterwave.ch> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-02-24input: Fix usage of *_MAX macros. Check keycode in KDIOSKEYCODE andVojtech Pavlik
EVIOCSKEYCODE macros to be <= KEY_MAX. Check off-by one mistakes in keycodemax usage. There was a lot of potential for overwriting memory. Also enlarge NR_KEYS to 256 while we're at it. Found-by: Georgi Guninski <guninski@guninski.com> Initial-patch-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
2004-11-01Merge suse.cz:/home/vojtech/bk/linus into suse.cz:/home/vojtech/bk/inputVojtech Pavlik
2004-10-27[PATCH] sonypi: rework input supportStelian Pop
* feed most of special keys through the input subsystem * initialize two separate input devices: a mouse like one for the jogdial and a keyboard like one for the special keys * add support for SONYPI_EVENT_FNKEY_RELEASED Many people participated in a way or another to this patch, including Daniel K. <daniel@cluded.net>, Bastien Nocera <hadess@hadess.net>, Dmitry Torokhov <dtor@mail.ru> and Vojtech Pavlik <vojtech@suse.cz>. Signed-off-by: Stelian Pop <stelian@popies.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2004-10-21Input: get rid of pm_dev in input core as it is deprecated andDmitry Torokhov
nothing uses it anyway. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2004-09-24input: Add LED definitions for PDAs.John Lenz
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: John Lenz <lenz@cs.wisc.edu>
2004-09-23input: Tidy up & fix the hid-input.c driver. Dual-wheel A4 mice don't report ↵Vojtech Pavlik
the phantom button anymore, D-Pads are mapped to Hat-switches, debug can print HID->Input mappings, more mappings added, devices with reports larger than MaxPacketSize work again. Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
2004-06-06input: Make hardware rawmode optional for AT-keyboards, and checkVojtech Pavlik
for rawmode bits in keyboard.c Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
2004-05-31input: Add reporting of raw scancodes to atkbd.cVojtech Pavlik
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
2004-04-22Input: - move set_abs_params from synaptics driver to input andDmitry Torokhov
rename to input_set_abs_params - convert input_report_* macros into inline functions - make use of set_abs_params in touchscreen drivers
2004-04-22Input: trailing whitespace fixesDmitry Torokhov
2004-02-08Make SET_INPUT_KEYCODE return the old value, and clean upLinus Torvalds
users of this that were very confused indeed.
2004-02-03[PATCH] gcc-3.5: keyboard.c fixesAndrew Morton
drivers/char/keyboard.c:205: warning: use of conditional expressions as lvalues is deprecated
2004-01-20input: Manual merge.Vojtech Pavlik
2004-01-19[PATCH] Input: add sysfs class support for input devicesGreg Kroah-Hartman
This patch adds sysfs support for all input devices. It also provides the "device" and "driver" symlink for all Input devices that specify it.
2004-01-18Merge twilight:bk/input into ucw.cz:/home/vojtech/bk/inputVojtech Pavlik
2004-01-17input: Key 89 is RO, not ROMAJI.Vojtech Pavlik
2004-01-16input: Added BUS_BLUETOOTH definition for BlueTooth HID devices.Marcel Holtmann
2004-01-15input: Move keycode definitions around to get as close to 2.4Vojtech Pavlik
compatibility as we can at the moment. This also kills KEY_103RD, because PS/2 keyboards don't have it and everyone is expecting to get KEY_BACKSLASH anyway. Fix rawmode generation for PrintScreen key, too.
2003-12-18[PATCH] Add black list to handler<->device matchingDmitry Torokhov
Input: Introduce an optional blacklist field in input_handler structure. When loading a new device or a new handler try to match device against handler's black list before doing match on required attributes. This allows to get rid of "surprises" in connect functions, IMO connect should only fail when it physically can not connect, not because it decides it does not like device.
2003-09-26input: Change AT keyboard to use hardware autorepeat and moveVojtech Pavlik
untranslating to the AT keyboard driver as well. Lower PS/2 mouse default report rate. Fix repeat rate adjustment ioctls accordingly, and update other files to reflect the changes. This should fix most known keyboard problems in 2.6.
2003-09-26input: Tidy up events reported by a Synaptics pad, add touchpadPeter Osterlund
support to mousedev.
2003-09-18input.h, keyboard.c, evdev.c:Vojtech Pavlik
Fix the INPUT_KEYCODE macro and its usage.
2003-06-20input: Add Logitech MX PS2++ support, move Logitech PS2++ code to aVojtech Pavlik
separate source file, always enable Synaptics support. Some more fixes in Synaptics code and documentation.