diff options
| author | David Brownell <[email protected]> | 2007-03-05 00:30:22 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-03-05 07:57:51 -0800 |
| commit | 49015bee4071d56456ef59f1f82be6531615341c (patch) | |
| tree | 93be9dccb55abdd028524bec564d54d663d04edf /include/linux | |
| parent | 0a938b9768d1fc0e12a884a6820a2e15df5a612c (diff) | |
[PATCH] gpio_keys driver shouldn't be ARM-specific
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]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/gpio_keys.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/gpio_keys.h b/include/linux/gpio_keys.h new file mode 100644 index 000000000000..2b217c7b9312 --- /dev/null +++ b/include/linux/gpio_keys.h @@ -0,0 +1,17 @@ +#ifndef _GPIO_KEYS_H +#define _GPIO_KEYS_H + +struct gpio_keys_button { + /* Configuration parameters */ + int keycode; + int gpio; + int active_low; + char *desc; +}; + +struct gpio_keys_platform_data { + struct gpio_keys_button *buttons; + int nbuttons; +}; + +#endif |