Skip to content

Commit 8724fdb

Browse files
committed
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: (62 commits) Input: atkbd - release previously reserved keycodes 248 - 254 Input: add KEY_WPS_BUTTON definition Input: ads7846 - add regulator support Input: winbond-cir - fix suspend/resume Input: gamecon - use pr_err() and friends Input: gamecon - constify some of the setup structures Input: gamecon - simplify pad type handling Input: gamecon - simplify coordinate calculation for PSX Input: gamecon - fix some formatting issues Input: gamecon - add rumble support for N64 pads Input: wacom - add device type to device name string Input: s3c24xx_ts - report touch only when stylus is down Input: s3c24xx_ts - re-enable IRQ on resume Input: wacom - constify product features data Input: wacom - use per-device instance of wacom_features Input: sh_keysc - enable building on SH-Mobile ARM Input: wacom - get features from driver info Input: rotary-encoder - set gpio direction for each requested gpio Input: sh_keysc - update the driver with mode 6 Input: sh_keysc - switch to using bitmaps ...
2 parents bc53515 + 35858ad commit 8724fdb

53 files changed

Lines changed: 3250 additions & 1334 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/feature-removal-schedule.txt‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,3 +538,26 @@ Why: Duplicate functionality with the gspca_zc3xx driver, zc0301 only
538538
sensors) wich are also supported by the gspca_zc3xx driver
539539
(which supports 53 USB-ID's in total)
540540
Who: Hans de Goede <hdegoede@redhat.com>
541+
542+
----------------------------
543+
544+
What: corgikbd, spitzkbd, tosakbd driver
545+
When: 2.6.35
546+
Files: drivers/input/keyboard/{corgi,spitz,tosa}kbd.c
547+
Why: We now have a generic GPIO based matrix keyboard driver that
548+
are fully capable of handling all the keys on these devices.
549+
The original drivers manipulate the GPIO registers directly
550+
and so are difficult to maintain.
551+
Who: Eric Miao <eric.y.miao@gmail.com>
552+
553+
----------------------------
554+
555+
What: corgi_ssp and corgi_ts driver
556+
When: 2.6.35
557+
Files: arch/arm/mach-pxa/corgi_ssp.c, drivers/input/touchscreen/corgi_ts.c
558+
Why: The corgi touchscreen is now deprecated in favour of the generic
559+
ads7846.c driver. The noise reduction technique used in corgi_ts.c,
560+
that's to wait till vsync before ADC sampling, is also integrated into
561+
ads7846 driver now. Provided that the original driver is not generic
562+
and is difficult to maintain, it will be removed later.
563+
Who: Eric Miao <eric.y.miao@gmail.com>

‎Documentation/input/sentelic.txt‎

Lines changed: 110 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Copyright (C) 2002-2008 Sentelic Corporation.
2-
Last update: Oct-31-2008
1+
Copyright (C) 2002-2010 Sentelic Corporation.
2+
Last update: Jan-13-2010
33

44
==============================================================================
55
* Finger Sensing Pad Intellimouse Mode(scrolling wheel, 4th and 5th buttons)
@@ -44,7 +44,7 @@ B) MSID 6: Horizontal and Vertical scrolling.
4444
Packet 1
4545
Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
4646
BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------|
47-
1 |Y|X|y|x|1|M|R|L| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 | | |B|F|l|r|u|d|
47+
1 |Y|X|y|x|1|M|R|L| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 | | |B|F|r|l|u|d|
4848
|---------------| |---------------| |---------------| |---------------|
4949

5050
Byte 1: Bit7 => Y overflow
@@ -59,15 +59,15 @@ Byte 2: X Movement(9-bit 2's complement integers)
5959
Byte 3: Y Movement(9-bit 2's complement integers)
6060
Byte 4: Bit0 => the Vertical scrolling movement downward.
6161
Bit1 => the Vertical scrolling movement upward.
62-
Bit2 => the Vertical scrolling movement rightward.
63-
Bit3 => the Vertical scrolling movement leftward.
62+
Bit2 => the Horizontal scrolling movement leftward.
63+
Bit3 => the Horizontal scrolling movement rightward.
6464
Bit4 => 1 = 4th mouse button is pressed, Forward one page.
6565
0 = 4th mouse button is not pressed.
6666
Bit5 => 1 = 5th mouse button is pressed, Backward one page.
6767
0 = 5th mouse button is not pressed.
6868

6969
C) MSID 7:
70-
# FSP uses 2 packets(8 Bytes) data to represent Absolute Position
70+
# FSP uses 2 packets (8 Bytes) to represent Absolute Position.
7171
so we have PACKET NUMBER to identify packets.
7272
If PACKET NUMBER is 0, the packet is Packet 1.
7373
If PACKET NUMBER is 1, the packet is Packet 2.
@@ -129,7 +129,7 @@ Byte 3: Message Type => 0x00 (Disabled)
129129
Byte 4: Bit7~Bit0 => Don't Care
130130

131131
==============================================================================
132-
* Absolute position for STL3888-A0.
132+
* Absolute position for STL3888-Ax.
133133
==============================================================================
134134
Packet 1 (ABSOLUTE POSITION)
135135
Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
@@ -179,14 +179,14 @@ Byte 4: Bit1~Bit0 => Y coordinate (xpos[1:0])
179179
Bit5~Bit4 => y2_g
180180
Bit7~Bit6 => x2_g
181181

182-
Notify Packet for STL3888-A0
182+
Notify Packet for STL3888-Ax
183183
Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
184184
BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------|
185185
1 |1|0|1|P|1|M|R|L| 2 |C|C|C|C|C|C|C|C| 3 |0|0|F|F|0|0|0|i| 4 |r|l|d|u|0|0|0|0|
186186
|---------------| |---------------| |---------------| |---------------|
187187

188188
Byte 1: Bit7~Bit6 => 00, Normal data packet
189-
=> 01, Absolute coordination packet
189+
=> 01, Absolute coordinates packet
190190
=> 10, Notify packet
191191
Bit5 => 1
192192
Bit4 => when in absolute coordinates mode (valid when EN_PKT_GO is 1):
@@ -205,15 +205,106 @@ Byte 4: Bit7 => scroll right button
205205
Bit6 => scroll left button
206206
Bit5 => scroll down button
207207
Bit4 => scroll up button
208-
* Note that if gesture and additional button (Bit4~Bit7)
209-
happen at the same time, the button information will not
210-
be sent.
208+
* Note that if gesture and additional buttoni (Bit4~Bit7)
209+
happen at the same time, the button information will not
210+
be sent.
211+
Bit3~Bit0 => Reserved
212+
213+
Sample sequence of Multi-finger, Multi-coordinate mode:
214+
215+
notify packet (valid bit == 1), abs pkt 1, abs pkt 2, abs pkt 1,
216+
abs pkt 2, ..., notify packet (valid bit == 0)
217+
218+
==============================================================================
219+
* Absolute position for STL3888-B0.
220+
==============================================================================
221+
Packet 1(ABSOLUTE POSITION)
222+
Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
223+
BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------|
224+
1 |0|1|V|F|1|0|R|L| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 |r|l|u|d|X|X|Y|Y|
225+
|---------------| |---------------| |---------------| |---------------|
226+
227+
Byte 1: Bit7~Bit6 => 00, Normal data packet
228+
=> 01, Absolute coordinates packet
229+
=> 10, Notify packet
230+
Bit5 => Valid bit, 0 means that the coordinate is invalid or finger up.
231+
When both fingers are up, the last two reports have zero valid
232+
bit.
233+
Bit4 => finger up/down information. 1: finger down, 0: finger up.
234+
Bit3 => 1
235+
Bit2 => finger index, 0 is the first finger, 1 is the second finger.
236+
Bit1 => Right Button, 1 is pressed, 0 is not pressed.
237+
Bit0 => Left Button, 1 is pressed, 0 is not pressed.
238+
Byte 2: X coordinate (xpos[9:2])
239+
Byte 3: Y coordinate (ypos[9:2])
240+
Byte 4: Bit1~Bit0 => Y coordinate (xpos[1:0])
241+
Bit3~Bit2 => X coordinate (ypos[1:0])
242+
Bit4 => scroll down button
243+
Bit5 => scroll up button
244+
Bit6 => scroll left button
245+
Bit7 => scroll right button
246+
247+
Packet 2 (ABSOLUTE POSITION)
248+
Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
249+
BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------|
250+
1 |0|1|V|F|1|1|R|L| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 |r|l|u|d|X|X|Y|Y|
251+
|---------------| |---------------| |---------------| |---------------|
252+
253+
Byte 1: Bit7~Bit6 => 00, Normal data packet
254+
=> 01, Absolute coordination packet
255+
=> 10, Notify packet
256+
Bit5 => Valid bit, 0 means that the coordinate is invalid or finger up.
257+
When both fingers are up, the last two reports have zero valid
258+
bit.
259+
Bit4 => finger up/down information. 1: finger down, 0: finger up.
260+
Bit3 => 1
261+
Bit2 => finger index, 0 is the first finger, 1 is the second finger.
262+
Bit1 => Right Button, 1 is pressed, 0 is not pressed.
263+
Bit0 => Left Button, 1 is pressed, 0 is not pressed.
264+
Byte 2: X coordinate (xpos[9:2])
265+
Byte 3: Y coordinate (ypos[9:2])
266+
Byte 4: Bit1~Bit0 => Y coordinate (xpos[1:0])
267+
Bit3~Bit2 => X coordinate (ypos[1:0])
268+
Bit4 => scroll down button
269+
Bit5 => scroll up button
270+
Bit6 => scroll left button
271+
Bit7 => scroll right button
272+
273+
Notify Packet for STL3888-B0
274+
Bit 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
275+
BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------|
276+
1 |1|0|1|P|1|M|R|L| 2 |C|C|C|C|C|C|C|C| 3 |0|0|F|F|0|0|0|i| 4 |r|l|u|d|0|0|0|0|
277+
|---------------| |---------------| |---------------| |---------------|
278+
279+
Byte 1: Bit7~Bit6 => 00, Normal data packet
280+
=> 01, Absolute coordination packet
281+
=> 10, Notify packet
282+
Bit5 => 1
283+
Bit4 => when in absolute coordinate mode (valid when EN_PKT_GO is 1):
284+
0: left button is generated by the on-pad command
285+
1: left button is generated by the external button
286+
Bit3 => 1
287+
Bit2 => Middle Button, 1 is pressed, 0 is not pressed.
288+
Bit1 => Right Button, 1 is pressed, 0 is not pressed.
289+
Bit0 => Left Button, 1 is pressed, 0 is not pressed.
290+
Byte 2: Message Type => 0xB7 (Multi Finger, Multi Coordinate mode)
291+
Byte 3: Bit7~Bit6 => Don't care
292+
Bit5~Bit4 => Number of fingers
293+
Bit3~Bit1 => Reserved
294+
Bit0 => 1: enter gesture mode; 0: leaving gesture mode
295+
Byte 4: Bit7 => scroll right button
296+
Bit6 => scroll left button
297+
Bit5 => scroll up button
298+
Bit4 => scroll down button
299+
* Note that if gesture and additional button(Bit4~Bit7)
300+
happen at the same time, the button information will not
301+
be sent.
211302
Bit3~Bit0 => Reserved
212303

213304
Sample sequence of Multi-finger, Multi-coordinate mode:
214305

215306
notify packet (valid bit == 1), abs pkt 1, abs pkt 2, abs pkt 1,
216-
abs pkt 2, ..., notify packet(valid bit == 0)
307+
abs pkt 2, ..., notify packet (valid bit == 0)
217308

218309
==============================================================================
219310
* FSP Enable/Disable packet
@@ -409,7 +500,8 @@ offset width default r/w name
409500
0: read only, 1: read/write enable
410501
(Note that following registers does not require clock gating being
411502
enabled prior to write: 05 06 07 08 09 0c 0f 10 11 12 16 17 18 23 2e
412-
40 41 42 43.)
503+
40 41 42 43. In addition to that, this bit must be 1 when gesture
504+
mode is enabled)
413505

414506
0x31 RW on-pad command detection
415507
bit7 0 RW on-pad command left button down tag
@@ -463,6 +555,10 @@ offset width default r/w name
463555
absolute coordinates; otherwise, host only receives packets with
464556
relative coordinate.)
465557

558+
bit7 0 RW EN_PS2_F2: PS/2 gesture mode 2nd
559+
finger packet enable
560+
0: disable, 1: enable
561+
466562
0x43 RW on-pad control
467563
bit0 0 RW on-pad control enable
468564
0: disable, 1: enable

‎arch/arm/mach-ep93xx/include/mach/ep93xx_keypad.h‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#ifndef __ASM_ARCH_EP93XX_KEYPAD_H
66
#define __ASM_ARCH_EP93XX_KEYPAD_H
77

8+
struct matrix_keymap_data;
9+
810
/* flags for the ep93xx_keypad driver */
911
#define EP93XX_KEYPAD_DISABLE_3_KEY (1<<0) /* disable 3-key reset */
1012
#define EP93XX_KEYPAD_DIAG_MODE (1<<1) /* diagnostic mode */
@@ -15,15 +17,13 @@
1517

1618
/**
1719
* struct ep93xx_keypad_platform_data - platform specific device structure
18-
* @matrix_key_map: array of keycodes defining the keypad matrix
19-
* @matrix_key_map_size: ARRAY_SIZE(matrix_key_map)
20-
* @debounce: debounce start count; terminal count is 0xff
21-
* @prescale: row/column counter pre-scaler load value
22-
* @flags: see above
20+
* @keymap_data: pointer to &matrix_keymap_data
21+
* @debounce: debounce start count; terminal count is 0xff
22+
* @prescale: row/column counter pre-scaler load value
23+
* @flags: see above
2324
*/
2425
struct ep93xx_keypad_platform_data {
25-
unsigned int *matrix_key_map;
26-
int matrix_key_map_size;
26+
struct matrix_keymap_data *keymap_data;
2727
unsigned int debounce;
2828
unsigned int prescale;
2929
unsigned int flags;

‎drivers/char/keyboard.c‎

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,11 +1185,6 @@ static void kbd_keycode(unsigned int keycode, int down, int hw_raw)
11851185

11861186
rep = (down == 2);
11871187

1188-
#ifdef CONFIG_MAC_EMUMOUSEBTN
1189-
if (mac_hid_mouse_emulate_buttons(1, keycode, down))
1190-
return;
1191-
#endif /* CONFIG_MAC_EMUMOUSEBTN */
1192-
11931188
if ((raw_mode = (kbd->kbdmode == VC_RAW)) && !hw_raw)
11941189
if (emulate_raw(vc, keycode, !down << 7))
11951190
if (keycode < BTN_MISC && printk_ratelimit())
@@ -1328,6 +1323,21 @@ static void kbd_event(struct input_handle *handle, unsigned int event_type,
13281323
schedule_console_callback();
13291324
}
13301325

1326+
static bool kbd_match(struct input_handler *handler, struct input_dev *dev)
1327+
{
1328+
int i;
1329+
1330+
if (test_bit(EV_SND, dev->evbit))
1331+
return true;
1332+
1333+
if (test_bit(EV_KEY, dev->evbit))
1334+
for (i = KEY_RESERVED; i < BTN_MISC; i++)
1335+
if (test_bit(i, dev->keybit))
1336+
return true;
1337+
1338+
return false;
1339+
}
1340+
13311341
/*
13321342
* When a keyboard (or other input device) is found, the kbd_connect
13331343
* function is called. The function then looks at the device, and if it
@@ -1339,14 +1349,6 @@ static int kbd_connect(struct input_handler *handler, struct input_dev *dev,
13391349
{
13401350
struct input_handle *handle;
13411351
int error;
1342-
int i;
1343-
1344-
for (i = KEY_RESERVED; i < BTN_MISC; i++)
1345-
if (test_bit(i, dev->keybit))
1346-
break;
1347-
1348-
if (i == BTN_MISC && !test_bit(EV_SND, dev->evbit))
1349-
return -ENODEV;
13501352

13511353
handle = kzalloc(sizeof(struct input_handle), GFP_KERNEL);
13521354
if (!handle)
@@ -1412,6 +1414,7 @@ MODULE_DEVICE_TABLE(input, kbd_ids);
14121414

14131415
static struct input_handler kbd_handler = {
14141416
.event = kbd_event,
1417+
.match = kbd_match,
14151418
.connect = kbd_connect,
14161419
.disconnect = kbd_disconnect,
14171420
.start = kbd_start,

‎drivers/input/evdev.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ static int evdev_open(struct inode *inode, struct file *file)
278278
goto err_free_client;
279279

280280
file->private_data = client;
281+
nonseekable_open(inode, file);
282+
281283
return 0;
282284

283285
err_free_client:

‎drivers/input/gameport/emu10k1-gp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ struct emu {
4646
int size;
4747
};
4848

49-
static struct pci_device_id emu_tbl[] = {
49+
static const struct pci_device_id emu_tbl[] = {
5050

5151
{ 0x1102, 0x7002, PCI_ANY_ID, PCI_ANY_ID }, /* SB Live gameport */
5252
{ 0x1102, 0x7003, PCI_ANY_ID, PCI_ANY_ID }, /* Audigy gameport */

‎drivers/input/gameport/fm801-gp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static void __devexit fm801_gp_remove(struct pci_dev *pci)
140140
}
141141
}
142142

143-
static struct pci_device_id fm801_gp_id_table[] = {
143+
static const struct pci_device_id fm801_gp_id_table[] = {
144144
{ PCI_VENDOR_ID_FORTEMEDIA, PCI_DEVICE_ID_FM801_GP, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },
145145
{ 0 }
146146
};

0 commit comments

Comments
 (0)