tdisc_shinetsu.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Copyright (c) 2010, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. *
  12. */
  13. #ifndef _TDISC_SHINETSU_H_
  14. #define _TDISC_SHINETSU_H_
  15. struct tdisc_abs_values {
  16. int x_max;
  17. int y_max;
  18. int x_min;
  19. int y_min;
  20. int pressure_max;
  21. int pressure_min;
  22. };
  23. struct tdisc_platform_data {
  24. int (*tdisc_setup) (void);
  25. void (*tdisc_release) (void);
  26. int (*tdisc_enable) (void);
  27. int (*tdisc_disable)(void);
  28. int tdisc_wakeup;
  29. int tdisc_gpio;
  30. bool tdisc_report_keys;
  31. bool tdisc_report_relative;
  32. bool tdisc_report_absolute;
  33. bool tdisc_report_wheel;
  34. bool tdisc_reverse_x;
  35. bool tdisc_reverse_y;
  36. struct tdisc_abs_values *tdisc_abs;
  37. };
  38. #endif /* _TDISC_SHINETSU_H_ */