lm8323.h 746 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * lm8323.h - Configuration for LM8323 keypad driver.
  4. */
  5. #ifndef __LINUX_LM8323_H
  6. #define __LINUX_LM8323_H
  7. #include <linux/types.h>
  8. /*
  9. * Largest keycode that the chip can send, plus one,
  10. * so keys can be mapped directly at the index of the
  11. * LM8323 keycode instead of subtracting one.
  12. */
  13. #define LM8323_KEYMAP_SIZE (0x7f + 1)
  14. #define LM8323_NUM_PWMS 3
  15. struct lm8323_platform_data {
  16. int debounce_time; /* Time to watch for key bouncing, in ms. */
  17. int active_time; /* Idle time until sleep, in ms. */
  18. int size_x;
  19. int size_y;
  20. bool repeat;
  21. const unsigned short *keymap;
  22. const char *pwm_names[LM8323_NUM_PWMS];
  23. const char *name; /* Device name. */
  24. };
  25. #endif /* __LINUX_LM8323_H */