1 /* 2 * TCA8418 keypad platform support 3 * 4 * Copyright (C) 2011 Fuel7, Inc. All rights reserved. 5 * 6 * Author: Kyle Manna <kyle.manna@fuel7.com> 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public 10 * License v2 as published by the Free Software Foundation. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public 18 * License along with this program; if not, write to the 19 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 20 * Boston, MA 021110-1307, USA. 21 * 22 * If you can't comply with GPLv2, alternative licensing terms may be 23 * arranged. Please contact Fuel7, Inc. (http://fuel7.com/) for proprietary 24 * alternative licensing inquiries. 25 */ 26 27 #ifndef _TCA8418_KEYPAD_H 28 #define _TCA8418_KEYPAD_H 29 30 #include <linux/types.h> 31 #include <linux/input/matrix_keypad.h> 32 33 #define TCA8418_I2C_ADDR 0x34 34 #define TCA8418_NAME "tca8418_keypad" 35 36 struct tca8418_keypad_platform_data { 37 const struct matrix_keymap_data *keymap_data; 38 unsigned rows; 39 unsigned cols; 40 bool rep; 41 bool irq_is_gpio; 42 }; 43 44 #endif 45