Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
tca6416_keypad.h
Go to the documentation of this file.
1 /*
2  * tca6416 keypad platform support
3  *
4  * Copyright (C) 2010 Texas Instruments
5  *
6  * Author: Sriramakrishnan <[email protected]>
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 
19  /* Configuration parameters */
20  int code; /* input event code (KEY_*, SW_*) */
22  int type; /* input event type (EV_KEY, EV_SW) */
23 };
24 
27  int nbuttons;
28  unsigned int rep:1; /* enable input subsystem auto repeat */
32  int use_polling; /* use polling if Interrupt is not connected*/
33 };
34 #endif