pstar: input touch st bring up

input touch st
bring up

Change-Id: I3bac2cc8dd9f64e236971c1b1916811b6f2ddc19
Signed-off-by: dengwei1 <dengwei1@motorola.com>
Reviewed-on: https://gerrit.mot.com/1880889
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
dengwei1 2021-02-05 15:04:41 +08:00 • committed by Wei Deng
commit a0083d696e

View file

@ -28,6 +28,7 @@
#include <linux/seq_file.h>
#include <linux/delay.h>
#include <linux/uaccess.h>
#include <linux/version.h>
#include "fts.h"
#include "fts_lib/ftsCompensation.h"
#include "fts_lib/ftsCore.h"
@ -677,7 +678,11 @@ static ssize_t fts_driver_test_write(struct file *file, const char __user *buf,
/*for(temp = 0; temp<count; temp++){
* logError(0,"%s p[%d] = %02X\n",tag, temp, p[temp]);
* }*/
#if KERNEL_VERSION(5, 4, 0) <= LINUX_VERSION_CODE
if (access_ok(buf, count) < OK ||
#else
if (access_ok(VERIFY_READ, buf, count) < OK ||
#endif
copy_from_user(pbuf, buf, count) != 0) {
res = ERROR_ALLOC;
goto END;