Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
linux
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
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
Generated on Thu Jan 10 2013 14:52:41 for Linux Kernel by
1.8.2