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