diff options
| author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 14:50:24 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 14:50:24 -0500 |
| commit | d68798374bcf5cd4a19105b86d96121651b3c8cb (patch) | |
| tree | 5e7432adf2b61f1497a4c3138c969e8664c54b6e | |
| parent | 412ecd7751a2653ab17df39a1dc3565a548633fd (diff) | |
| parent | 2a598df595d33be0f12e37ef5df75eff13511d07 (diff) | |
Merge branch 'for-linus' of 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
| -rw-r--r-- | Documentation/feature-removal-schedule.txt | 15 | ||||
| -rw-r--r-- | drivers/char/scan_keyb.c | 149 | ||||
| -rw-r--r-- | drivers/char/scan_keyb.h | 15 | ||||
| -rw-r--r-- | drivers/input/keyboard/Kconfig | 19 | ||||
| -rw-r--r-- | drivers/input/keyboard/Makefile | 5 | ||||
| -rw-r--r-- | drivers/input/keyboard/gpio_keys.c | 147 | ||||
| -rw-r--r-- | drivers/input/keyboard/hilkbd.c | 114 | ||||
| -rw-r--r-- | drivers/input/misc/Kconfig | 10 | ||||
| -rw-r--r-- | drivers/input/misc/Makefile | 1 | ||||
| -rw-r--r-- | drivers/input/misc/atlas_btns.c | 170 | ||||
| -rw-r--r-- | drivers/input/misc/wistron_btns.c | 20 | ||||
| -rw-r--r-- | drivers/input/mouse/inport.c | 2 | ||||
| -rw-r--r-- | drivers/input/mouse/pc110pad.c | 2 | ||||
| -rw-r--r-- | drivers/input/serio/i8042.c | 12 | ||||
| -rw-r--r-- | drivers/input/touchscreen/Kconfig | 9 | ||||
| -rw-r--r-- | drivers/input/touchscreen/ads7846.c | 581 | ||||
| -rw-r--r-- | drivers/input/tsdev.c | 4 | ||||
| -rw-r--r-- | drivers/usb/input/hid-ff.c | 1 | ||||
| -rw-r--r-- | drivers/usb/input/hid-lgff.c | 1 | ||||
| -rw-r--r-- | include/asm-arm/hardware/gpio_keys.h | 17 | ||||
| -rw-r--r-- | include/linux/spi/ads7846.h | 12 |
21 files changed, 889 insertions, 417 deletions
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt index 8247a4b79d09..c585aa8d62b4 100644 --- a/Documentation/feature-removal-schedule.txt +++ b/Documentation/feature-removal-schedule.txt | |||
| @@ -319,3 +319,18 @@ Why: In kernel tree version of driver is unmaintained. Sk98lin driver | |||
| 319 | replaced by the skge driver. | 319 | replaced by the skge driver. |
| 320 | Who: Stephen Hemminger <shemminger@osdl.org> | 320 | Who: Stephen Hemminger <shemminger@osdl.org> |
| 321 | 321 | ||
| 322 | --------------------------- | ||
| 323 | |||
| 324 | What: Compaq touchscreen device emulation | ||
| 325 | When: Oct 2007 | ||
| 326 | Files: drivers/input/tsdev.c | ||
| 327 | Why: The code says it was obsolete when it was written in 2001. | ||
| 328 | tslib is a userspace library which does anything tsdev can do and | ||
| 329 | much more besides in userspace where this code belongs. There is no | ||
| 330 | longer any need for tsdev and applications should have converted to | ||
| 331 | use tslib by now. | ||
| 332 | The name "tsdev" is also extremely confusing and lots of people have | ||
| 333 | it loaded when they don't need/use it. | ||
| 334 | Who: Richard Purdie <rpurdie@rpsys.net> | ||
| 335 | |||
| 336 | --------------------------- | ||
diff --git a/drivers/char/scan_keyb.c b/drivers/char/scan_keyb.c deleted file mode 100644 index 2b5bb4f5754d..000000000000 --- a/drivers/char/scan_keyb.c +++ /dev/null | |||
| @@ -1,149 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * $Id: scan_keyb.c,v 1.2 2000/07/04 06:24:42 yaegashi Exp $ | ||
| 3 | * Copyright (C) 2000 YAEGASHI Takeshi | ||
| 4 | * Generic scan keyboard driver | ||
| 5 | */ | ||
| 6 | |||
| 7 | #include <linux/spinlock.h> | ||
| 8 | #include <linux/sched.h> | ||
| 9 | #include <linux/interrupt.h> | ||
| 10 | #include <linux/tty.h> | ||
| 11 | #include <linux/mm.h> | ||
| 12 | #include <linux/signal.h> | ||
| 13 | #include <linux/init.h> | ||
| 14 | #include <linux/kbd_ll.h> | ||
| 15 | #include <linux/delay.h> | ||
| 16 | #include <linux/random.h> | ||
| 17 | #include <linux/poll.h> | ||
| 18 | #include <linux/miscdevice.h> | ||
| 19 | #include <linux/slab.h> | ||
| 20 | #include <linux/kbd_kern.h> | ||
| 21 | #include <linux/timer.h> | ||
| 22 | |||
| 23 | #define SCANHZ (HZ/20) | ||
| 24 | |||
| 25 | struct scan_keyboard { | ||
| 26 | struct scan_keyboard *next; | ||
| 27 | int (*scan)(unsigned char *buffer); | ||
| 28 | const unsigned char *table; | ||
| 29 | unsigned char *s0, *s1; | ||
| 30 | int length; | ||
| 31 | }; | ||
| 32 | |||
| 33 | static int scan_jiffies=0; | ||
| 34 | static struct scan_keyboard *keyboards=NULL; | ||
| 35 | struct timer_list scan_timer; | ||
| 36 | |||
| 37 | static void check_kbd(const unsigned char *table, | ||
| 38 | unsigned char *new, unsigned char *old, int length) | ||
| 39 | { | ||
| 40 | int need_tasklet_schedule=0; | ||
| 41 | unsigned int xor, bit; | ||
| 42 | |||
| 43 | while(length-->0) { | ||
| 44 | if((xor=*new^*old)==0) { | ||
| 45 | table+=8; | ||
| 46 | } | ||
| 47 | else { | ||
| 48 | for(bit=0x01; bit<0x100; bit<<=1) { | ||
| 49 | if(xor&bit) { | ||
| 50 | handle_scancode(*table, !(*new&bit)); | ||
| 51 | need_tasklet_schedule=1; | ||
| 52 | #if 0 | ||
| 53 | printk("0x%x %s\n", *table, (*new&bit)?"released":"pressed"); | ||
| 54 | #endif | ||
| 55 | } | ||
| 56 | table++; | ||
| 57 | } | ||
| 58 | } | ||
| 59 | new++; old++; | ||
| 60 | } | ||
| 61 | |||
| 62 | if(need_tasklet_schedule) | ||
| 63 | tasklet_schedule(&keyboard_tasklet); | ||
| 64 | } | ||
| 65 | |||
| 66 | |||
| 67 | static void scan_kbd(unsigned long dummy) | ||
| 68 | { | ||
| 69 | struct scan_keyboard *kbd; | ||
| 70 | |||
| 71 | scan_jiffies++; | ||
| 72 | |||
| 73 | for(kbd=keyboards; kbd!=NULL; kbd=kbd->next) { | ||
| 74 | if(scan_jiffies&1) { | ||
| 75 | if(!kbd->scan(kbd->s0)) | ||
| 76 | check_kbd(kbd->table, | ||
| 77 | kbd->s0, kbd->s1, kbd->length); | ||
| 78 | else | ||
| 79 | memcpy(kbd->s0, kbd->s1, kbd->length); | ||
| 80 | } | ||
| 81 | else { | ||
| 82 | if(!kbd->scan(kbd->s1)) | ||
| 83 | check_kbd(kbd->table, | ||
| 84 | kbd->s1, kbd->s0, kbd->length); | ||
| 85 | else | ||
| 86 | memcpy(kbd->s1, kbd->s0, kbd->length); | ||
| 87 | } | ||
| 88 | |||
| 89 | } | ||
| 90 | |||
| 91 | init_timer(&scan_timer); | ||
| 92 | scan_timer.expires = jiffies + SCANHZ; | ||
| 93 | scan_timer.data = 0; | ||
| 94 | scan_timer.function = scan_kbd; | ||
| 95 | add_timer(&scan_timer); | ||
| 96 | } | ||
| 97 | |||
| 98 | |||
| 99 | int register_scan_keyboard(int (*scan)(unsigned char *buffer), | ||
| 100 | const unsigned char *table, | ||
| 101 | int length) | ||
| 102 | { | ||
| 103 | struct scan_keyboard *kbd; | ||
| 104 | |||
| 105 | kbd = kmalloc(sizeof(struct scan_keyboard), GFP_KERNEL); | ||
| 106 | if (kbd == NULL) | ||
| 107 | goto error_out; | ||
| 108 | |||
| 109 | kbd->scan=scan; | ||
| 110 | kbd->table=table; | ||
| 111 | kbd->length=length; | ||
| 112 | |||
| 113 | kbd->s0 = kmalloc(length, GFP_KERNEL); | ||
| 114 | if (kbd->s0 == NULL) | ||
| 115 | goto error_free_kbd; | ||
| 116 | |||
| 117 | kbd->s1 = kmalloc(length, GFP_KERNEL); | ||
| 118 | if (kbd->s1 == NULL) | ||
| 119 | goto error_free_s0; | ||
| 120 | |||
| 121 | memset(kbd->s0, -1, kbd->length); | ||
| 122 | memset(kbd->s1, -1, kbd->length); | ||
| 123 | |||
| 124 | kbd->next=keyboards; | ||
| 125 | keyboards=kbd; | ||
| 126 | |||
| 127 | return 0; | ||
| 128 | |||
| 129 | error_free_s0: | ||
| 130 | kfree(kbd->s0); | ||
| 131 | |||
| 132 | error_free_kbd: | ||
| 133 | kfree(kbd); | ||
| 134 | |||
| 135 | error_out: | ||
| 136 | return -ENOMEM; | ||
| 137 | } | ||
| 138 | |||
