Sriramakrishnan Govindarajan | 30ba3ea | 2010-05-03 23:47:12 -0700 | [diff] [blame] | 1 | /* |
| 2 | * tca6416 keypad platform support |
| 3 | * |
| 4 | * Copyright (C) 2010 Texas Instruments |
| 5 | * |
| 6 | * Author: Sriramakrishnan <srk@ti.com> |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License version 2 as |
| 10 | * published by the Free Software Foundation. |
| 11 | */ |
| 12 | |
| 13 | #ifndef _TCA6416_KEYS_H |
| 14 | #define _TCA6416_KEYS_H |
| 15 | |
| 16 | #include <linux/types.h> |
| 17 | |
| 18 | struct tca6416_button { |
| 19 | /* Configuration parameters */ |
| 20 | int code; /* input event code (KEY_*, SW_*) */ |
| 21 | int active_low; |
| 22 | int type; /* input event type (EV_KEY, EV_SW) */ |
| 23 | }; |
| 24 | |
| 25 | struct tca6416_keys_platform_data { |
| 26 | struct tca6416_button *buttons; |
| 27 | int nbuttons; |
| 28 | unsigned int rep:1; /* enable input subsystem auto repeat */ |
| 29 | uint16_t pinmask; |
| 30 | uint16_t invert; |
| 31 | int irq_is_gpio; |
| 32 | int use_polling; /* use polling if Interrupt is not connected*/ |
| 33 | }; |
| 34 | #endif |