op_gammatool: update sysfs path for new kernel
authorGrazvydas Ignotas <notasas@gmail.com>
Mon, 9 Apr 2012 16:16:28 +0000 (19:16 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 9 Apr 2012 16:16:52 +0000 (19:16 +0300)
op_gammatool.c

index cda8e01..964ece3 100644 (file)
@@ -245,7 +245,9 @@ int main(int argc, char *argv[])
        }
 
        ret = 0;
-       f = fopen("/sys/devices/platform/omap2_mcspi.1/spi1.1/gamma", "r+");
+       f = fopen("/sys/devices/platform/omapdss/display0/gamma", "r+");
+       if (f == NULL)
+               f = fopen("/sys/devices/platform/omap2_mcspi.1/spi1.1/gamma", "r+");
        if (f != NULL) {
                int *g = gamma;
                rewind(f);