From 792a549aba7b21a7005bdc75189c9bb7e3f78425 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Mon, 9 Apr 2012 19:16:28 +0300 Subject: [PATCH] op_gammatool: update sysfs path for new kernel --- op_gammatool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.5