From 9e61feae77ad13f7a5aca6d31e300992e9262bd9 Mon Sep 17 00:00:00 2001 From: Jordan Nien Date: Thu, 16 Oct 2014 13:48:21 +0800 Subject: [PATCH] input: touchscreen: raydium: Disable slowscan - 'slowscan' mode is not supported on ST8. Bug 200045928 Change-Id: I527b2cb618bb4d63c14c0e5b9f1c74f91a82749f Signed-off-by: Jordan Nien Reviewed-on: http://git-master/r/558236 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Chen Reviewed-by: Robert Collins Reviewed-by: Vincent Chen Reviewed-by: Mitch Luban --- drivers/input/touchscreen/rm31080a_ts.c | 2 ++ include/linux/spi/rm31080a_ts.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/rm31080a_ts.c b/drivers/input/touchscreen/rm31080a_ts.c index c6250523230..83448a03ef0 100644 --- a/drivers/input/touchscreen/rm31080a_ts.c +++ b/drivers/input/touchscreen/rm31080a_ts.c @@ -1816,11 +1816,13 @@ static void rm_work_handler(struct work_struct *work) i_ret = rm_tch_ctrl_clear_int(); +#ifdef ENABLE_SLOW_SCAN if (g_st_ts.b_slow_scan_flg == true) { rm_tch_cmd_process((u8)(g_st_ts.u32_slow_scan_level - 1), g_st_rm_slow_scan_cmd, NULL); g_st_ts.b_slow_scan_flg = false; } +#endif ENABLE_SLOW_SCAN u32_flag = rm_tch_ctrl_configure(); diff --git a/include/linux/spi/rm31080a_ts.h b/include/linux/spi/rm31080a_ts.h index 4bd48e08619..e93e71c9f38 100644 --- a/include/linux/spi/rm31080a_ts.h +++ b/include/linux/spi/rm31080a_ts.h @@ -248,7 +248,7 @@ ***************************************************************************/ /*#define ENABLE_CALC_QUEUE_COUNT*/ -#define ENABLE_SLOW_SCAN +/*#define ENABLE_SLOW_SCAN*/ #define ENABLE_SMOOTH_LEVEL #define ENABLE_SPI_SETTING 0 #define ENABLE_FREQ_HOPPING 1 -- 2.39.2