diff options
| author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
|---|---|---|
| committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
| commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
| tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /include/linux/gpio_scrollwheel.h | |
| parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) | |
Diffstat (limited to 'include/linux/gpio_scrollwheel.h')
| -rw-r--r-- | include/linux/gpio_scrollwheel.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/include/linux/gpio_scrollwheel.h b/include/linux/gpio_scrollwheel.h new file mode 100644 index 00000000000..33d17a0199e --- /dev/null +++ b/include/linux/gpio_scrollwheel.h | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2010, NVIDIA Corporation. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License as published by | ||
| 6 | * the Free Software Foundation; either version 2 of the License, or | ||
| 7 | * (at your option) any later version. | ||
| 8 | * | ||
| 9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
| 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 12 | * more details. | ||
| 13 | * | ||
| 14 | * You should have received a copy of the GNU General Public License along | ||
| 15 | * with this program; if not, write to the Free Software Foundation, Inc., | ||
| 16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #ifndef _GPIO_SCROLLWHEEL_H | ||
| 20 | #define _GPIO_SCROLLWHEEL_H | ||
| 21 | |||
| 22 | #define GPIO_SCROLLWHEEL_PIN_ONOFF 0 | ||
| 23 | #define GPIO_SCROLLWHEEL_PIN_PRESS 1 | ||
| 24 | #define GPIO_SCROLLWHEEL_PIN_ROT1 2 | ||
| 25 | #define GPIO_SCROLLWHEEL_PIN_ROT2 3 | ||
| 26 | #define GPIO_SCROLLWHEEL_PIN_MAX 4 | ||
| 27 | |||
| 28 | struct gpio_scrollwheel_button { | ||
| 29 | /* Configuration parameters */ | ||
| 30 | int pinaction; /* GPIO_SCROLLWHEEL_PIN_* */ | ||
| 31 | int gpio; | ||
| 32 | char *desc; | ||
| 33 | int active_low; | ||
| 34 | int debounce_interval; /* debounce ticks interval in msecs */ | ||
| 35 | }; | ||
| 36 | |||
| 37 | struct gpio_scrollwheel_platform_data { | ||
| 38 | struct gpio_scrollwheel_button *buttons; | ||
| 39 | int nbuttons; | ||
| 40 | unsigned int rep:1; /* enable input subsystem auto repeat */ | ||
| 41 | int (*enable)(struct device *dev); | ||
| 42 | void (*disable)(struct device *dev); | ||
| 43 | }; | ||
| 44 | |||
| 45 | #endif | ||
| 46 | |||
