mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
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:
parent
6c104d54d4
commit
a0083d696e
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue