Duy Truong | 790f06d | 2013-02-13 16:38:12 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2010, The Linux Foundation. All rights reserved. |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 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 | |
| 14 | #ifndef _TDISC_SHINETSU_H_ |
| 15 | #define _TDISC_SHINETSU_H_ |
| 16 | |
| 17 | struct tdisc_abs_values { |
| 18 | int x_max; |
| 19 | int y_max; |
| 20 | int x_min; |
| 21 | int y_min; |
| 22 | int pressure_max; |
| 23 | int pressure_min; |
| 24 | }; |
| 25 | |
| 26 | struct tdisc_platform_data { |
| 27 | int (*tdisc_setup) (void); |
| 28 | void (*tdisc_release) (void); |
| 29 | int (*tdisc_enable) (void); |
| 30 | int (*tdisc_disable)(void); |
| 31 | int tdisc_wakeup; |
| 32 | int tdisc_gpio; |
| 33 | bool tdisc_report_keys; |
| 34 | bool tdisc_report_relative; |
| 35 | bool tdisc_report_absolute; |
| 36 | bool tdisc_report_wheel; |
| 37 | bool tdisc_reverse_x; |
| 38 | bool tdisc_reverse_y; |
| 39 | struct tdisc_abs_values *tdisc_abs; |
| 40 | }; |
| 41 | |
| 42 | #endif /* _TDISC_SHINETSU_H_ */ |