sm6150-common: power: Add NVTCapacitiveTouchScreen support

Change-Id: Ifd151f0642b495f80cc512d4fe19d1cfab97bcf8
This commit is contained in:
Rasenkai 2020-11-17 18:03:23 +05:30 committed by Arian
parent 6d7d3b5096
commit fbefbbb0d7
No known key found for this signature in database
GPG Key ID: 48029380598CE3B9

View File

@ -37,7 +37,8 @@ int open_ts_input() {
fd = open(absolute_path, O_RDWR); fd = open(absolute_path, O_RDWR);
if (ioctl(fd, EVIOCGNAME(sizeof(name) - 1), &name) > 0) { if (ioctl(fd, EVIOCGNAME(sizeof(name) - 1), &name) > 0) {
if (strcmp(name, "fts") == 0 || strcmp(name, "goodix_ts") == 0) if (strcmp(name, "fts") == 0 || strcmp(name, "goodix_ts") == 0 ||
strcmp(name, "NVTCapacitiveTouchScreen") == 0)
break; break;
} }