Root/
1 | /* |
2 | * Definitions for the GPIO buttons interface driver |
3 | * |
4 | * Copyright (C) 2007-2010 Gabor Juhos <juhosg@openwrt.org> |
5 | * |
6 | * This file was based on: /include/linux/gpio_keys.h |
7 | * The original gpio_keys.h seems not to have a license. |
8 | * |
9 | * This program is free software; you can redistribute it and/or modify |
10 | * it under the terms of the GNU General Public License version 2 as |
11 | * published by the Free Software Foundation. |
12 | * |
13 | */ |
14 | |
15 | #ifndef _GPIO_BUTTONS_H_ |
16 | #define _GPIO_BUTTONS_H_ |
17 | |
18 | struct gpio_button { |
19 | int gpio; /* GPIO line number */ |
20 | int active_low; |
21 | char *desc; /* button description */ |
22 | int type; /* input event type (EV_KEY, EV_SW) */ |
23 | int code; /* input event code (KEY_*, SW_*) */ |
24 | int threshold; /* count threshold */ |
25 | }; |
26 | |
27 | struct gpio_buttons_platform_data { |
28 | struct gpio_button *buttons; |
29 | int nbuttons; /* number of buttons */ |
30 | int poll_interval; /* polling interval */ |
31 | }; |
32 | |
33 | #endif /* _GPIO_BUTTONS_H_ */ |
34 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9