Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 126838
b: refs/heads/master
c: b67b4b1
h: refs/heads/master
v: v3
  • Loading branch information
Dominic Curran authored and Dmitry Torokhov committed Oct 28, 2008
1 parent 166a43e commit c47d841
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b4a3ac9a3c26e82e31f8a8f55cb014bc580b1216
refs/heads/master: b67b4b117746aef686e527c3205792db0f2c9e16
4 changes: 4 additions & 0 deletions trunk/drivers/input/keyboard/gpio_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ static int __devinit gpio_keys_probe(struct platform_device *pdev)
input->id.product = 0x0001;
input->id.version = 0x0100;

/* Enable auto repeat feature of Linux input subsystem */
if (pdata->rep)
__set_bit(EV_REP, input->evbit);

ddata->input = input;

for (i = 0; i < pdata->nbuttons; i++) {
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/gpio_keys.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ struct gpio_keys_button {
struct gpio_keys_platform_data {
struct gpio_keys_button *buttons;
int nbuttons;
unsigned int rep:1; /* enable input subsystem auto repeat */
};

#endif

0 comments on commit c47d841

Please sign in to comment.