op_gammatool: update sysfs path for new kernel
[pandora-misc.git] / 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);