op_test_inputs: fix power device name
[pandora-misc.git] / op_test_inputs.c
index 923740b..90e9b00 100644 (file)
@@ -301,7 +301,7 @@ int main(int argc, char *argv[])
 
                ioctl(fd, EVIOCGNAME(sizeof(name)), name);
 
-               if (strcasestr(name, "pwrbutton") != NULL)
+               if (strcasestr(name, "power") != NULL)
                {
                        ifd[DEV_PWRBTN] = fd;
                }
@@ -329,11 +329,11 @@ int main(int argc, char *argv[])
                        }
                        ifd[DEV_TS] = ts_fd(ts);
                }
-               else if (strcmp(name, "vsense66") == 0)
+               else if (strcmp(name, "nub0") == 0)
                {
                        ifd[DEV_LNUB] = fd;
                }
-               else if (strcmp(name, "vsense67") == 0)
+               else if (strcmp(name, "nub1") == 0)
                {
                        ifd[DEV_RNUB] = fd;
                }