tca6416_keypad.h 701 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * tca6416 keypad platform support
  4. *
  5. * Copyright (C) 2010 Texas Instruments
  6. *
  7. * Author: Sriramakrishnan <srk@ti.com>
  8. */
  9. #ifndef _TCA6416_KEYS_H
  10. #define _TCA6416_KEYS_H
  11. #include <linux/types.h>
  12. struct tca6416_button {
  13. /* Configuration parameters */
  14. int code; /* input event code (KEY_*, SW_*) */
  15. int active_low;
  16. int type; /* input event type (EV_KEY, EV_SW) */
  17. };
  18. struct tca6416_keys_platform_data {
  19. struct tca6416_button *buttons;
  20. int nbuttons;
  21. unsigned int rep:1; /* enable input subsystem auto repeat */
  22. uint16_t pinmask;
  23. uint16_t invert;
  24. int irq_is_gpio;
  25. int use_polling; /* use polling if Interrupt is not connected*/
  26. };
  27. #endif