tca6416_keypad.h 683 B

123456789101112131415161718192021222324252627282930
  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 <[email protected]>
  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 use_polling; /* use polling if Interrupt is not connected*/
  25. };
  26. #endif