summaryrefslogtreecommitdiff
path: root/drivers/input/evdev.c
AgeCommit message (Collapse)Author
2006-01-12[PATCH] ia64: task_pt_regs()Al Viro
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-11[PATCH] x86_64: Implement is_compat_task the right wayAndi Kleen
By setting a flag during a 32bit system call only Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-01-07Merge git://git.kernel.org/pub/scm/linux/kernel/git/dtor/inputLinus Torvalds
2006-01-06[PATCH] s390: cleanup KconfigMartin Schwidefsky
Sanitize some s390 Kconfig options. We have ARCH_S390, ARCH_S390X, ARCH_S390_31, 64BIT, S390_SUPPORT and COMPAT. Replace these 6 options by S390, 64BIT and COMPAT. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-12-11Input: evdev - consolidate compat and regular codeDmitry Torokhov
Compat and normal code mirror each other and are hard to maintain. When EV_SW was added compat_ioctl case was missed. Here is my attempt at consolidating the code. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2005-10-31Input: evdev - allow querying SW state from compat ioctlDmitry Torokhov
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2005-10-31Input: evdev - allow querying EV_SW bits from compat_ioctlDmitry Torokhov
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2005-10-28[PATCH] INPUT: Create symlinks for backwards compatibilityGreg Kroah-Hartman
This creates symlinks in /sys/class/input/ to the nested class devices to help userspace cope with the nesting. Unfortunatly udev still needs to be updated as it can't handle symlinks properly here :( Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
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: move the input class devices under their new input_dev devicesGreg Kroah-Hartman
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-10-28[PATCH] Input: kill devfs referencesDmitry Torokhov
Input: remove references to devfs from input subsystem Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-10-28[PATCH] Driver Core: fix up all callers of class_device_create()Greg Kroah-Hartman
The previous patch adding the ability to nest struct class_device changed the paramaters to the call class_device_create(). This patch fixes up all in-kernel users of the function. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2005-09-09Manual merge with LinusDmitry Torokhov
2005-09-09[PATCH] trivial __user annotations (evdev)viro@ZenIV.linux.org.uk
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
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-05[PATCH] mips: kludge envdev to build for 64-bit MIPS with 32-bit compatRalf Baechle
Extend the compat mode kludgeology in envdev to cover MIPS as well. Or why we should need something like is_compat_task() ... Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Cc: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: Dmitry Torokhov <dtor_core@ameritech.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-04Input: fix checking whether new keycode fits size-wiseIan Campbell
When dev->keycodesize == sizeof(int) the old code produces incorrect result. Signed-off-by: Ian Campbell <ijc@hellion.org.uk> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2005-07-24Input: check keycodesize when adjusting keymapsVojtech Pavlik
When changing key mappings we need to make sure that the new keycode value can be stored in dev->keycodesize bytes. Signed-off-by: Vojtech Pavlik <vojtech@suse.cz> 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: Make EVIOSCSABS work in evdev.Vojtech Pavlik
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2005-05-29Input: Fix a warning in evdev's 32-bit emulation code.Vojtech Pavlik
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2005-05-29Input: Add support for 32-bit emulation on 64-bit platforms for evdev.Juergen Kreileder
Signed-off-by: Juergen Kreileder <jk@blackdown.de> Signed-off-by: Vojtech Pavlik <vojtech@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
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>
2005-02-07input: Do a kill_fasync() in input handlers on device disconnectVojtech Pavlik
to notify a client using poll() that the device is gone. Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
2005-02-06input: Fix poll() behavior of input handlers on disconnect.Vojtech Pavlik
Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
2005-02-04Input: evdev - return -EINVAL from evdev_read if read bufferDmitry Torokhov
is too small. Based on a patch by James Lamanna. Signed-off-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Vojtech Pavlik <vojtech@suse.cz>
2004-10-21Input: evdev, joydev, mousedev, tsdev - remove class device and devfsDmitry Torokhov
entry when hardware driver disconnects instead of waiting for the last user to drop off. This way hardware drivers can be unloaded at any time. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2004-06-07Merge suse.cz:/home/vojtech/bk/linusVojtech Pavlik
into suse.cz:/home/vojtech/bk/for-linus
2004-05-28[PATCH] sparse: partial drivers/input __user annotationAlexander Viro
2004-05-14Merge bkbits:input into suse.cz:/home/vojtech/bk/inputVojtech Pavlik
2004-05-14evdev.c:Rob Melby
input: Fix an oops at opentime of /dev/input/event devices
2004-05-09Input: trailing whitespace fixes in drivers/inputDmitry Torokhov
2004-02-09input: Re-add a loop to set the old scancode bit in device key bitmap.Vojtech Pavlik
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-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.
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-18input.h, keyboard.c, evdev.c:Vojtech Pavlik
Fix the INPUT_KEYCODE macro and its usage.
2003-08-31[PATCH] evdev_ioctl does not report EV_MSC capabilitiesAndrew Morton
From: Dmitry Torokhov <dtor_core@ameritech.net> While working on my GPM patches found out that EV_MSC was forgotten...
2003-08-30[PATCH] dev_t handling cleanups (10/12)Alexander Viro
new helper - iminor(inode); defined as minor(inode->i_rdev); lots and lots of places in drivers had been switched to it.
2003-08-14[PATCH] janitor: input/evdev fix copy_user faultRandy Dunlap
From: Daniele Bellucci <bellucda@tiscali.it>
2003-06-09input: Implement input device grabbing so that it is possible to stealZephaniah E. Hull
an input device from other handlers and have an exclusive access to events.
2003-05-07[PATCH] devfs: API changesAndrew Morton
From: Christoph Hellwig <hch@lst.de> Some people may already have noticed that I've been revamping the devfs API recently. The worst offender still left is devfs_register, it's prototype is: devfs_handle_t devfs_register(devfs_handle_t dir, const char *name, unsigned int flags, unsigned int major, unsigned int minor, umode_t mode, void *ops, void *info) Of these: - dir and flags are always zero - the return value is never used - info is only used in one driver which doesn't even need it for operation - umode_t always describes a character device - name very often comes from a stack buffer we sprintf'ed into so obviously we really want a much simpler API instead. My first draft for this was: int devfs_mk_cdev(dev_t dev, umode_t mode, struct file_operations *fops, void *info, const char *fmt, ...) this removes the unused argumens, switches to a proper dev_t for the device number and allows to directly use a printf-like expression as name, getting rid of the temporary buffers. Now Al has reappeared and put the first steps of his CIDR for charater device on public ftp and we'll soon have a similar lookup object + fops mechanism in generic code as we already habe for blockdevices, i.e. the devfs code to assign fops from an entry will become superflous as generic code already does it. That means the fops and info arguments are obsolete before they were introduced, so I'd like to propose the following API instead: int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...) which is much nicer anyway. The educated reader will notice that this is exactly the same prototype devfs_mk_bdev has so I'll probably get suggestions to merge those two into some kind of devfs_mk_node soon. Personally I don't like that as character and blockdevices are two really separate entinities and I'll like to keep them as separate as possible. Example patch that introduces the API and converts drivers/input attached. Every driver which calls devfs_mk_cdev (about 50) needs conversion. Note that the transition can happen in pieces - devfs_register continues to work after this patch, it's just the plan to get rid of it in the end.
2003-04-28driver core: fix up the input_class logic due to the class changes.Greg Kroah-Hartman
2003-04-23[PATCH] don't include devfs_fs_kernel.h in global headersChristoph Hellwig
Now that devfs_handle_t is gone from all structs there is no reason to include it in headers. Fix the fallout by including previously implicit headers and fixing the drivers that didn't include devfs_fs_kernel.h explicitly.
2003-04-20[PATCH] devfs: inputChristoph Hellwig
Make sure input always uses devfs_remove. While at it I've also remove lots of code duplication - every upper input driver contained the code surrounding devfs_unregister in two identical copies.
2003-03-23[PATCH] cleanup input_register_minorChristoph Hellwig
Always pass the input/ prefix to input_register_minor instead of using the first argument to devfs_register
2002-11-17[PATCH] C99 initializers for drivers/inputArt Haas
2002-11-09Handle return values from interface_register() and misc_register()Michael Still
in the input drivers.