tca8418_keypad.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #ifndef _TCA8418_KEYPAD_H
  27. #define _TCA8418_KEYPAD_H
  28. #include <linux/types.h>
  29. #include <linux/input/matrix_keypad.h>
  30. #define TCA8418_I2C_ADDR 0x34
  31. #define TCA8418_NAME "tca8418_keypad"
  32. struct tca8418_keypad_platform_data {
  33. const struct matrix_keymap_data *keymap_data;
  34. unsigned rows;
  35. unsigned cols;
  36. bool rep;
  37. bool irq_is_gpio;
  38. };
  39. #endif