diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-04-25 18:08:29 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2014-05-14 19:39:49 -0400 |
commit | 542ad4f8886b376dac9a4334bdb38f9c22a4d8da (patch) | |
tree | cc0f77a21e047774cb43580225536622d175a1b7 /include/linux/gpio_keys.h | |
parent | 5d422f2e78e19842a35044a1e77bd758d3127a81 (diff) |
Input: gpio_keys - convert struct descriptions to kernel-doc
This patch converts descriptions of the structures defined in
linux/gpio_keys.h to follow kernel-doc format.
There is no functional change.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux/gpio_keys.h')
-rw-r--r-- | include/linux/gpio_keys.h | 48 |
1 files changed, 36 insertions, 12 deletions
diff --git a/include/linux/gpio_keys.h b/include/linux/gpio_keys.h index a7e977ff4abf..8b622468952c 100644 --- a/include/linux/gpio_keys.h +++ b/include/linux/gpio_keys.h | |||
@@ -3,29 +3,53 @@ | |||
3 | 3 | ||
4 | struct device; | 4 | struct device; |
5 | 5 | ||
6 | /** | ||
7 | * struct gpio_keys_button - configuration parameters | ||
8 | * @code: input event code (KEY_*, SW_*) | ||
9 | * @gpio: %-1 if this key does not support gpio | ||
10 | * @active_low: %true indicates that button is considered | ||
11 | * depressed when gpio is low | ||
12 | * @desc: label that will be attached to button's gpio | ||
13 | * @type: input event type (%EV_KEY, %EV_SW, %EV_ABS) | ||
14 | * @wakeup: configure the button as a wake-up source | ||
15 | * @debounce_interval: debounce ticks interval in msecs | ||
16 | * @can_disable: %true indicates that userspace is allowed to | ||
17 | * disable button via sysfs | ||
18 | * @value: axis value for %EV_ABS | ||
19 | * @irq: Irq number in case of interrupt keys | ||
20 | */ | ||
6 | struct gpio_keys_button { | 21 | struct gpio_keys_button { |
7 | /* Configuration parameters */ | 22 | unsigned int code; |
8 | unsigned int code; /* input event code (KEY_*, SW_*) */ | 23 | int gpio; |
9 | int gpio; /* -1 if this key does not support gpio */ | ||
10 | int active_low; | 24 | int active_low; |
11 | const char *desc; | 25 | const char *desc; |
12 | unsigned int type; /* input event type (EV_KEY, EV_SW, EV_ABS) */ | 26 | unsigned int type; |
13 | int wakeup; /* configure the button as a wake-up source */ | 27 | int wakeup; |
14 | int debounce_interval; /* debounce ticks interval in msecs */ | 28 | int debounce_interval; |
15 | bool can_disable; | 29 | bool can_disable; |
16 | int value; /* axis value for EV_ABS */ | 30 | int value; |
17 | unsigned int irq; /* Irq number in case of interrupt keys */ | 31 | unsigned int irq; |
18 | }; | 32 | }; |
19 | 33 | ||
34 | /** | ||
35 | * struct gpio_keys_platform_data - platform data for gpio_keys driver | ||
36 | * @buttons: pointer to array of &gpio_keys_button structures | ||
37 | * describing buttons attached to the device | ||
38 | * @nbuttons: number of elements in @buttons array | ||
39 | * @poll_interval: polling interval in msecs - for polling driver only | ||
40 | * @rep: enable input subsystem auto repeat | ||
41 | * @enable: platform hook for enabling the device | ||
42 | * @disable: platform hook for disabling the device | ||
43 | * @name: input device name | ||
44 | */ | ||
20 | struct gpio_keys_platform_data { | 45 | struct gpio_keys_platform_data { |
21 | struct gpio_keys_button *buttons; | 46 | struct gpio_keys_button *buttons; |
22 | int nbuttons; | 47 | int nbuttons; |
23 | unsigned int poll_interval; /* polling interval in msecs - | 48 | unsigned int poll_interval; |
24 | for polling driver only */ | 49 | unsigned int rep:1; |
25 | unsigned int rep:1; /* enable input subsystem auto repeat */ | ||
26 | int (*enable)(struct device *dev); | 50 | int (*enable)(struct device *dev); |
27 | void (*disable)(struct device *dev); | 51 | void (*disable)(struct device *dev); |
28 | const char *name; /* input device name */ | 52 | const char *name; |
29 | }; | 53 | }; |
30 | 54 | ||
31 | #endif | 55 | #endif |