Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189927
b: refs/heads/master
c: 9d32c30
h: refs/heads/master
i:
  189925: 98d2b69
  189923: 2571f1f
  189919: c94e855
v: v3
  • Loading branch information
H Hartley Sweeten authored and Dmitry Torokhov committed Apr 6, 2010
1 parent 72b1b80 commit 56f0f6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e28d8eb68c12eab9c4a47b42ba993a6420d71d3
refs/heads/master: 9d32c30542f9ecdb4b96a1a960924c9f403e3562
4 changes: 3 additions & 1 deletion trunk/drivers/input/keyboard/matrix_keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ static int __devinit matrix_keypad_probe(struct platform_device *pdev)
input_dev->name = pdev->name;
input_dev->id.bustype = BUS_HOST;
input_dev->dev.parent = &pdev->dev;
input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REP);
input_dev->evbit[0] = BIT_MASK(EV_KEY);
if (!pdata->no_autorepeat)
input_dev->evbit[0] |= BIT_MASK(EV_REP);
input_dev->open = matrix_keypad_start;
input_dev->close = matrix_keypad_stop;

Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/input/matrix_keypad.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ struct matrix_keymap_data {
* @active_low: gpio polarity
* @wakeup: controls whether the device should be set up as wakeup
* source
* @no_autorepeat: disable key autorepeat
*
* This structure represents platform-specific data that use used by
* matrix_keypad driver to perform proper initialization.
Expand All @@ -64,6 +65,7 @@ struct matrix_keypad_platform_data {

bool active_low;
bool wakeup;
bool no_autorepeat;
};

/**
Expand Down

0 comments on commit 56f0f6a

Please sign in to comment.