import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / input / touchscreen / mediatek / tpd_misc.c
1 #include "tpd.h"
2
3 int tpd_calibrate_en = 0;
4 module_param(tpd_calibrate_en, int, 00664);
5
6 int tpd_show_version = 0;
7 module_param(tpd_show_version, int, 00664);
8
9 /* switch touch panel into single scan mode for decreasing interference */
10 void tpd_switch_single_mode(void)
11 {
12 #ifdef HAVE_SINGLE_MULTIPLE_SCAN_MODE
13 _tpd_switch_single_mode();
14 #endif
15 }
16 EXPORT_SYMBOL(tpd_switch_single_mode);
17
18 /* switch touch panel into multiple scan mode for better performance */
19 void tpd_switch_multiple_mode(void)
20 {
21 #ifdef HAVE_SINGLE_MULTIPLE_SCAN_MODE
22 _tpd_switch_multiple_mode();
23 #endif
24 }
25 EXPORT_SYMBOL(tpd_switch_multiple_mode);
26
27 /* switch touch panel into deep sleep mode */
28 void tpd_switch_sleep_mode(void)
29 {
30 #ifdef HAVE_SLEEP_NORMAL_MODE
31 _tpd_switch_sleep_mode();
32 #endif
33 }
34 EXPORT_SYMBOL(tpd_switch_sleep_mode);
35
36 /* switch touch panel back to normal mode */
37 void tpd_switch_normal_mode(void)
38 {
39 #ifdef HAVE_SLEEP_NORMAL_MODE
40 _tpd_switch_normal_mode();
41 #endif
42 }
43 EXPORT_SYMBOL(tpd_switch_normal_mode);