2 * tca6416 keypad platform support
4 * Copyright (C) 2010 Texas Instruments
6 * Author: Sriramakrishnan <srk@ti.com>
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.
13 #ifndef _TCA6416_KEYS_H
14 #define _TCA6416_KEYS_H
16 #include <linux/types.h>
18 struct tca6416_button {
19 /* Configuration parameters */
20 int code; /* input event code (KEY_*, SW_*) */
22 int type; /* input event type (EV_KEY, EV_SW) */
25 struct tca6416_keys_platform_data {
26 struct tca6416_button *buttons;
28 unsigned int rep:1; /* enable input subsystem auto repeat */
32 int use_polling; /* use polling if Interrupt is not connected*/