summaryrefslogtreecommitdiff
path: root/drivers/input/evdev.c
AgeCommit message (Collapse)Author
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.
2002-09-25Convert more of input to list.h usage.Vojtech Pavlik
2002-08-26Define a struct device_interface for all the input interfaces and register Patrick Mochel
them with the input device class when started up.
2002-08-26Shorten the keycode handling code in keyboard.c and evdev.c.Vojtech Pavlik
Recompute keybit when keycode table changes. Stricter checks on input keycode/scancode values.
2002-07-30Change the EVIOC?ABS ioctls to use structs rather than arrays of ints.Brad Hards
2002-07-25Add EVIOCSABS() ioctl to change the abs* informativeVojtech Pavlik
values on input devices. This is something the X peoople really wanted. Rename input_devinfo to input_id, it's shorter and more to the point. Remove superfluous printks in uinput.c Clean up return values in evdev.c ioctl.
2002-07-25Small cleanup in evdev.c, which copies the data directly fromVojtech Pavlik
input struct to userspace.
2002-07-25Apply Rusty's C99 initializer patch to input drivers.Vojtech Pavlik
Fix cli() breakage in input (gameport) drivers.
2002-07-25This patch by Brad Hards replaces the four id* fields of the inputVojtech Pavlik
struct by a single struct to simplify passing it around and to userspace.
2002-07-04Minor cleanup in evdev.cVojtech Pavlik
2002-07-03Update the input handler modules to latest versions.Vojtech Pavlik
2002-02-06[PATCH] Input drivers, step #3Vojtech Pavlik
This patch updates the input core to the current version, fixing a bunch of bugs, adding hotplug support and a listing of available input devices in /proc. The later is very useful for troubleshooting. Vojtech Pavlik SuSE Labs
2002-02-05v2.5.2.3 -> v2.5.2.4Linus Torvalds
- Patrick Mochel: initcall levels - Patrick Mochel: devicefs updates, add PCI devices into the hierarchy - Denis Oliver Kropp: neomagic fb driver - David Miller: sparc64 and network updates - Kai Mäkisara: scsi tape update - Al Viro: more inode trimming, VFS cleanup - Greg KH: USB update - proper urb allocations - Eric Raymond: kdev_t updates for fb devices
2002-02-04v2.5.1.6 -> v2.5.1.7Linus Torvalds
- Jeff Garzik: fix up loop and md for struct kdev_t typechecking - Jeff Garzik: improved old-tulip network driver - Arnaldo: more scsi driver bio updates - Kai Germaschewski: ISDN updates - various: kdev_t updates
2002-02-04v2.5.0.2 -> v2.5.0.3Linus Torvalds
- Al Viro: more superblock cleanups - Jens Axboe: more patches for new block IO layer - Christoph Hellwig: get rid of the old, long- deprecated SCSI error handling
2002-02-04v2.4.10.1 -> v2.4.10.2Linus Torvalds
- me/Al Viro: fix bdget() oops with block device modules that don't clean up after they exit - Alan Cox: continued merging (drivers, license tags) - David Miller: sparc update, network fixes - Christoph Hellwig: work around broken drivers that add a gendisk more than once - Jakub Jelinek: handle more ELF loading special cases - Trond Myklebust: NFS client and lockd reclaimer cleanups/fixes - Greg KH: USB updates - Mikael Pettersson: sparate out local APIC / IO-APIC config options
2002-02-04v2.4.9.8 -> v2.4.9.9Linus Torvalds
- Greg KH: start migration to new "min()/max()" - Roman Zippel: move affs over to "min()/max()". - Vojtech Pavlik: VIA update (make sure not to IRQ-unmask a vt82c576) - Jan Kara: quota bug-fix (don't decrement quota for non-counted inode) - Anton Altaparmakov: more NTFS updates - Al Viro: make nosuid/noexec/nodev be per-mount flags, not per-filesystem - Alan Cox: merge input/joystick layer differences, driver and alpha merge - Keith Owens: scsi Makefile cleanup - Trond Myklebust: fix oopsable race in locking code - Jean Tourrilhes: IrDA update
2002-02-04v2.4.1.2 -> v2.4.1.3Linus Torvalds
- Jens: better ordering of requests when unable to merge - Neil Brown: make md work as a module again (we cannot autodetect in modules, not enough background information) - Neil Brown: raid5 SMP locking cleanups - Neil Brown: nfsd: handle Irix NFS clients named pipe behavior and dentry leak fix - maestro3 shutdown fix - fix dcache hash calculation that could cause bad hashes under certain circumstances (Dean Gaudet) - David Miller: networking and sparc updates - Jeff Garzik: include file cleanups - Andy Grover: ACPI update - Coda-fs error return fixes - rth: alpha Jensen update