From: Grazvydas Ignotas Date: Mon, 9 Apr 2012 16:16:28 +0000 (+0300) Subject: op_gammatool: update sysfs path for new kernel X-Git-Tag: sz_beta4~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=792a549aba7b21a7005bdc75189c9bb7e3f78425;p=pandora-misc.git op_gammatool: update sysfs path for new kernel --- diff --git a/op_gammatool.c b/op_gammatool.c index cda8e01..964ece3 100644 --- a/op_gammatool.c +++ b/op_gammatool.c @@ -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);