aboutsummaryrefslogtreecommitdiff
path: root/drivers/input
AgeCommit message (Collapse)AuthorFilesLines
2007-04-25Input: lifebook - split into 2 devicesDmitry Torokhov1-20/+93
Have lifebook protocol register 2 separate input devices - one for the touchscreen reporting absolute coordinates and touches and another one for touchpad reporting relative coordinates and left and right button presses. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-25Input: lifebook - add signature of Panasonic CF-29Dmitry Torokhov1-0/+8
Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: lifebook - activate 6-byte protocol on select modelsDmitry Torokhov1-13/+65
It appears that if we turn on 6-byte Lifebook protocol on Panasonic CF-28 its touchpad is left alone and generates standard 3-byte PS/2 data stream with relative packets instead of being converted in 3-byte Lifebook protocol with absolute coordinates - in other words what get what we need to distinguish between touchscreen and touchpad. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: lifebook - work properly on Panasonic CF-18Dmitry Torokhov1-0/+14
Panasonic CF18 has an active multiplexing controller with touchscreen connected to one port and a touchpad to another. Use "phys" from serio port to activate lifebook protoocol only on the port that has touchscreen connected to it. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: cobalt buttons - separate device and driver registrationDmitry Torokhov1-23/+1
Create platform device for cobalt buttons as part of arch setup. This makes the driver follow current driver model more closely. Signed-off-by: Dmitry Torokhov <[email protected]> Acked-by: Yoichi Yuasa <[email protected]>
2007-04-12Input: pxa27x - do not use deprecated SA_INTERRUPT flagThomas Gleixner1-1/+1
IRQF_DISABLED is the proper name. Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: ucb1400 - make delays configurableCliff Brake1-3/+14
This patch adds module parameters for several timing values used in the driver. These values can vary based on the hardware design and how much capacitive filtering there is on the touch panel inputs, and the resistance of the panel. Signed-off-by: Cliff Brake <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: misc devices - switch to using input_dev->dev.parentDmitry Torokhov4-6/+6
In preparation for struct class_device -> struct device input core conversion, switch to using input_dev->dev.parent when specifying device position in sysfs tree. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: joysticks - switch to using input_dev->dev.parentDmitry Torokhov18-18/+19
In preparation for struct class_device -> struct device input core conversion, switch to using input_dev->dev.parent when specifying device position in sysfs tree. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: touchscreens - switch to using input_dev->dev.parentDmitry Torokhov10-6/+10
In preparation for struct class_device -> struct device input core conversion, switch to using input_dev->dev.parent when specifying device position in sysfs tree. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: mice - switch to using input_dev->dev.parentDmitry Torokhov4-4/+4
In preparation for struct class_device -> struct device input core conversion, switch to using input_dev->dev.parent when specifying device position in sysfs tree. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: keyboards - switch to using input_dev->dev.parentDmitry Torokhov14-13/+15
In preparation for struct class_device -> struct device input core conversion, switch to using input_dev->dev.parent when specifying device position in sysfs tree. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: prepare to switching to struct deviceDmitry Torokhov1-0/+3
In preparation to switching to struct device and class device going away provide an alias to allow drivers that create devices to use either input_dev->cdev.dev or input_dev->dev.parent to put them into sysfs tree. The former will go away once conversion to struct device is complete. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: drivers/input/misc - don't access dev->private directlyDmitry Torokhov2-10/+9
Use input_get_drvdata() and input_set_drvdata() instead. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: drivers/input/keyboard - don't access dev->private directlyDmitry Torokhov14-20/+13
Use input_get_drvdata() and input_set_drvdata() instead. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: drivers/input/joystick - don't access dev->private directlyDmitry Torokhov20-49/+59
Use input_get_drvdata() and input_set_drvdata() instead. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: drivers/input/touchscreen - don't access dev->private directlyDmitry Torokhov9-13/+8
Use input_get_drvdata() and input_set_drvdata() instead. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: drivers/input/mice - don't access dev->private directlyDmitry Torokhov4-5/+0
Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: logips2pp - add model 1 informationDmitry Torokhov1-0/+1
It turns out I had an old 2-button Logitech mouse that responds to Logitech's queries with model of 1. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: wistron - declare keymaps as initdataEric Piel1-27/+49
As the number of keymaps increases and is very unlikely to reduce, this patch helps to reduce memory consumption by declaring all keymaps as __initdata and copying right keymap during DMI detection. On x86 this make the module size at runtime going from 10616 to 9428: a bit more than 1kb saved. Signed-off-by: Eric Piel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: wistron - introduce generic keymapEric Piel1-2/+40
It turns out that the keymaps in the wistron driver are almost the same, the main difference being some keys which may not exist and leds which might not be present. Therefore it's possible to write a generic keymap which would allow the use of an unknown keyboard with little drawbacks. The user can select it specifying the parameter "keymap=generic". Signed-off-by: Eric Piel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: wistron - add acerhk laptop databaseEric Piel1-72/+523
Acerhk supports already a lot of laptops. Lets import its database so that everyone can benefit of the work of Olaf Tauber. Only the "tm_new" laptops were imported. "tm_old" laptops could be possible but requires more testing and probably only few laptops are still alive. "dritek" laptops should probably be imported into a different driver. Also compress the keymaps by fitting each entry on an int. Most of the dmi matching was written based on google searches, so it's rather prone to errors. That's why I'm asking people to confirm it works. Support to generate switch input events was added as some laptops indicate lid open/close through this interface. This adds the following hardware: Acer TravelMate 370 Acer TravelMate 380 Acer TravelMate C300 Acer TravelMate C100 Acer TravelMate C110 Acer TravelMate 250 Acer TravelMate 350 Acer TravelMate 620 Acer TravelMate 630 Acer TravelMate 220 Acer TravelMate 230 Acer TravelMate 260 Acer TravelMate 280 Acer TravelMate 360 Acer TravelMate 2100 Acer TravelMate 2410 Acer Aspire 1500 Acer Aspire 1600 Acer Aspire 3020 Acer Aspire 5020 Medion MD 2900 Medion MD 40100 Medion MD 95400 Medion MD 96500 Fujitsu Siemens Amilo 7820 Signed-off-by: Eric Piel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: logips2pp - ignore mice reporting model as 0Dmitry Torokhov1-3/+3
There are mice reporting to logitech's queries with model of 0. Do not claim that these are Logitech mice. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: i8042 - disable interfaces when switching to legacy modeDmitry Torokhov1-0/+7
Disable both keyboard and auxiliary interfaces before switching to legacy mode to prevent atkbd from getting "empty" interrupts. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: mousedev - fix sudden warps with touchpadsDmitry Torokhov1-25/+26
Pete Zaitcev reports that with his touchpad, if he lifts the finger and places it elsewhere, the pointer sometimes warps dramatically. This happens because we don't store coordinates unless we detect a touch so sometimes we have stale coordinates in queue (from where the finger left the pad) and averaging makes cursor to jump across the screen. The solution is to always store the latest coordinates. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: ALPS - handle errors from input_register_device()Dmitry Torokhov2-5/+9
Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: remove no longer used power.c handlerRobert P. J. Day2-181/+0
Delete the never-compiled source file drivers/input/power.c, and remove its entry from the corresponding Makefile, as there is no Kconfig file that refers to the config option INPUT_POWER Signed-off-by: Robert P. J. Day <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: synaptics - export model bitsDmitry Torokhov1-0/+10
Encode synaptics model in psmouse->model so it will be exported via sysfs as input_dev->id.version and become visible for applications. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: iforce - use usb_kill_urb instead of usb_unlink_urbJohann Deneux6-38/+33
Using usb_unlink_urb can cause iforce_open to fail when called soon after iforce_release. Also updated my email address and replaced calls to printk() by dbg(), warn(), info(), err()... Signed-off-by: Johann Deneux <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: handlers - handle errors from input_open_device()Dmitry Torokhov4-40/+107
Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: handlers - rename 'list' to 'client'Dmitry Torokhov4-298/+329
The naming convention in input handlers was very confusing - client stuctures were called lists, regular lists were also called lists making anyone looking at the code go mad. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-12Input: rework handle creation codeDmitry Torokhov7-116/+264
- consolidate code for binding handlers to a device - return error codes from handlers connect() methods back to input core and log failures Signed-off-by: Dmitry Torokhov <[email protected]>
2007-04-10[PATCH] Input: ucb1400 - set up driver's name to show in sysfsCliff Brake1-0/+1
The UCB1400 is missing a name parameter in the device_driver struct. This causes missing information in the /sys tree and seems to cause other problems with the AC97 functionality. This was tested on a PXA270 system. Signed-off-by: Cliff Brake <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-03-16Input: i8042 - add HP Pavilion DV4017EA to the MUX blacklistDmitry Torokhov1-0/+11
This should get rid of "atkbd.c: Suprious NAK on isa0060/serio0" messages caused by broken MUX implementation. The box does not have external PS/2 ports so disabling MUX mode is safe. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-16Input: HIL - fix rwlock recursion bugHelge Deller3-25/+18
The following bug happens when insmoding hp_sdc_mlc.ko: HP SDC MLC: Registering the System Domain Controller's HIL MLC. BUG: rwlock recursion on CPU#0, hotplug/1814, 00854734 Backtrace: [<10267560>] _raw_write_lock+0x50/0x88 [<10104008>] _write_lock_irqsave+0x14/0x24 [<008537d4>] hp_sdc_mlc_out+0x38/0x25c [hp_sdc_mlc] [<0084ebd8>] hilse_donode+0x308/0x470 [hil_mlc] [<0084ed80>] hil_mlcs_process+0x40/0x6c [hil_mlc] [<10130f80>] tasklet_action+0x78/0xb8 [<10130cec>] __do_softirq+0x60/0xcc [<1010428c>] __lock_text_end+0x38/0x48 [<10108348>] do_cpu_irq_mask+0xf0/0x11c [<1010b068>] intr_return+0x0/0xc Signed-off-by: Helge Deller <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-16Input: add support for PXA27x keyboard controllerRodolfo Giometti3-0/+268
Signed-off-by: Rodolfo Giometti <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-16Input: sermouse - improve protocol error recoveryPeter Osterlund1-4/+12
When using MS protocol the driver should wait for a byte with bit 6 set before assuming that it sees beginning of a data packet. This should allow driver better cope with lost bytes and prevent spurious left/right button events when serial communication is disturbed by a CPU-hungry real-time process. Also fix some formatting. Signed-off-by: Peter Osterlund <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-16Input: simplify input_free_device()Dmitry Torokhov1-7/+1
Now that sysfs attributes that were marked for deletion can't access their devices we do not need to set name, phys and uniq to NULL. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-14Input: add getkeycode and setkeycode methodsMarvin Raaijmakers2-20/+96
Allow drivers to implement their own get and set keycode methods. This will allow drivers to change their keymaps without allocating huge tables covering entire range of possible scancodes. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-10Input: psmouse - allow disabing certain protocol extensionsAndres Salomon10-59/+195
Allow ALPS, LOGIPS2PP, LIFEBOOK, TRACKPOINT and TOUCHKIT protocol extensions of psmouse to be disabled during compilation. This will allow users save some memory when they are sure that they will only use a certain type of mice. Signed-off-by: Andres Salomon <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-08Merge branch 'for-linus' of ↵Linus Torvalds1-2/+8
master.kernel.org:/pub/scm/linux/kernel/git/dtor/input * 'for-linus' of master.kernel.org:/pub/scm/linux/kernel/git/dtor/input: Input: i8042 - another attempt to fix AUX delivery checks
2007-03-07Input: i8042 - another attempt to fix AUX delivery checksDmitry Torokhov1-2/+8
Do not assume that AUX_LOOP command is broken unless it completes successfully but returns wrong (unexpected) data. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-07Input: let driver core create class device attribute groupsDmitry Torokhov1-21/+8
Rely on device core to create attribute groups for input devices instead of open-coding it. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-07Input: export 'uniq' in /proc/bus/input/devicesDmitry Torokhov1-0/+1
Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-07Input: wistron - add support for TravelMate 610Eric Piel1-0/+24
Add support for Acer TravelMate 610 to wistron_btns. All special keys are detected, but the 2 leds are not handled (yet). Signed-off-by: Eric Piel <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-07Input: psmouse - do not force stream modeDmitry Torokhov1-6/+0
Forcing stream mode after reset confuses some devices (reported by Andrea Arcangeli) so let's take it out - spec says that after reset mouse should already be in stream mode. Signed-off-by: Dmitry Torokhov <[email protected]>
2007-03-05[PATCH] gpio_keys driver shouldn't be ARM-specificDavid Brownell1-3/+1
The gpio_keys driver is wrongly ARM-specific; it can't build on other platforms with GPIO suport. This fixes that problem. Signed-off-by: David Brownell <[email protected]> Cc: Dmitry Torokhov <[email protected]> Cc: pHilipp Zabel <[email protected]> Cc: Haavard Skinnemoen <[email protected]> Cc: Russell King <[email protected]> Cc: Richard Purdie <[email protected]> Cc: Ben Nizette <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-03-05[PATCH] add CONFIG_GENERIC_GPIODavid Brownell1-4/+6
Most drivers using GPIOs already know they are running on a system that supports the generic GPIO calls, because of other platform dependencies. But the generic GPIO-based LED and input button drivers can't know that. So this patch adds a Kconfig hook, GENERIC_GPIO, to mark the platforms where <asm/gpio.h> will do the right thing. Currently that's a bunch of ARMs, and AVR32; more are on the way. It also fixes a dependency bug for the gpio button input driver; it was wrong to start with, now it covers all platforms with GENERIC_GPIO. Signed-off-by: David Brownell <[email protected]> Acked-by: Richard Purdie <[email protected]> Cc: Arnaud Patard <[email protected]> Cc: <[email protected]> Cc: <[email protected]> Cc: pHilipp Zabel <[email protected]> Cc: Haavard Skinnemoen <[email protected]> Cc: Dmitry Torokhov <[email protected]> Cc: Russell King <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2007-02-28Input: HIL - cleanup coding styleHelge Deller5-576/+703
Signed-off-by: Helge Deller <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
2007-02-28Input: HIL - various fixes for HIL driversHelge Deller5-25/+27
- mark some structures const or __read_mostly - hilkbd.c: fix uninitialized spinlock in HIL keyboard driver - hil_mlc.c: use USEC_PER_SEC instead of 1000000 - hp_sdc: bugfix for request_irq()/free_irq() parameters, this prevented multiple load/unload cycles as module Signed-off-by: Helge Deller <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>