diff options
Diffstat (limited to 'gpe-conf/gpe-conf-0.1.8/brightness.patch')
-rw-r--r-- | gpe-conf/gpe-conf-0.1.8/brightness.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/gpe-conf/gpe-conf-0.1.8/brightness.patch b/gpe-conf/gpe-conf-0.1.8/brightness.patch index e69de29bb2..b3f169fd87 100644 --- a/gpe-conf/gpe-conf-0.1.8/brightness.patch +++ b/gpe-conf/gpe-conf-0.1.8/brightness.patch @@ -0,0 +1,53 @@ +Index: ipaqscreen/brightness.c +=================================================================== +RCS file: /cvs/gpe/base/gpe-conf/ipaqscreen/brightness.c,v +retrieving revision 1.13 +retrieving revision 1.14 +diff -u -r1.13 -r1.14 +--- ipaqscreen/brightness.c 13 Jul 2003 08:40:13 -0000 1.13 ++++ ipaqscreen/brightness.c 3 Jun 2004 17:35:23 -0000 1.14 +@@ -23,7 +23,7 @@ + #include "../parser.h" + + #include <fcntl.h> +-#ifdef __arm__ ++#ifdef MACH_IPAQ + #include <sys/ioctl.h> + #include <linux/h3600_ts.h> + #define TS_DEV "/dev/touchscreen/0" +@@ -32,7 +32,7 @@ + + void turn_light(int status) + { +-#ifdef __arm__ ++#ifdef MACH_IPAQ + int fd; + bl.mode=1; + bl.pwr=status; +@@ -46,7 +46,7 @@ + + int get_light_state () + { +-#ifndef __arm__ ++#ifndef MACH_IPAQ + return 10; // bl doesnt exit on i386 dev machines! + #else + struct h3600_ts_backlight tsbl; +@@ -83,7 +83,7 @@ + + void set_brightness (int brightness) + { +-#ifdef __arm__ ++#ifdef MACH_IPAQ + int fd; + + if (brightness) +@@ -102,7 +102,7 @@ + + int get_brightness () + { +-#ifndef __arm__ ++#ifndef MACH_IPAQ + return 10; // bl doesnt exit on i386 dev machines! + #else + struct h3600_ts_backlight tsbl; |