/* * tca6416 keypad platform support * * Copyright (C) 2010 Texas Instruments * * Author: Sriramakrishnan <srk@ti.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */#ifndef _TCA6416_KEYS_H#define _TCA6416_KEYS_H#include <linux/types.h>structtca6416_button{/* Configuration parameters */intcode;/* input event code (KEY_*, SW_*) */intactive_low;inttype;/* input event type (EV_KEY, EV_SW) */};structtca6416_keys_platform_data{structtca6416_button*buttons;intnbuttons;unsignedintrep:1;/* enable input subsystem auto repeat */uint16_tpinmask;uint16_tinvert;intirq_is_gpio;intuse_polling;/* use polling if Interrupt is not connected*/};#endif