]> git.openpandora.org Git - pandora-misc.git/commitdiff
op_test_inputs: fix power device name Release-2010-05/1
authorGrazvydas Ignotas <notasas@gmail.com>
Tue, 4 May 2010 15:41:59 +0000 (18:41 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Tue, 4 May 2010 15:41:59 +0000 (18:41 +0300)
op_test_inputs.c

index 6597ab77c0e35b348b9f24cbe40dc1e03ad71726..90e9b00a436484f4dba72e97548571b34cd3ef21 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;
                }