sm6125-common: power: add NVT touchscreen detection
Change-Id: I5cfe17cb6cc28a9ca5b9e6bbb448a9d9f3d29b29 Signed-off-by: Skyblueborb <tomaszborbely0710@gmail.com>
This commit is contained in:
committed by
Michael Bestas
parent
7e27afa629
commit
ff2b4a158a
@@ -37,7 +37,8 @@ int open_ts_input() {
|
||||
|
||||
fd = open(absolute_path, O_RDWR);
|
||||
if (ioctl(fd, EVIOCGNAME(sizeof(name) - 1), &name) > 0) {
|
||||
if (strcmp(name, "fts_ts") == 0)
|
||||
if (strcmp(name, "fts_ts") == 0 ||
|
||||
strcmp(name, "NVTCapacitiveTouchScreen") == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user