r4326 - trunk/src/target/OM-2007.2/daemons/neod/src

erin_yueh at sita.openmoko.org erin_yueh at sita.openmoko.org
Tue Apr 8 17:06:02 CEST 2008


Author: erin_yueh
Date: 2008-04-08 17:05:59 +0200 (Tue, 08 Apr 2008)
New Revision: 4326

Modified:
   trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c
Log:
neod: modify gsm, gps, bluetooth device PATH (Erin Yueh)


Modified: trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c
===================================================================
--- trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c	2008-04-08 13:37:05 UTC (rev 4325)
+++ trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c	2008-04-08 15:05:59 UTC (rev 4326)
@@ -644,17 +644,17 @@
     {
         case GSM:
 #ifdef NEOD_PLATFORM_FIC_NEO1973
-            return read_boolean_from_path( "/sys/devices/platform/gta01-pm-gsm.0/power_on" );
+            return read_boolean_from_path( "/sys/bus/platform/devices/neo1973-pm-gsm.0/power_on" );
 #endif
             return FALSE;
         case BLUETOOTH:
 #ifdef NEOD_PLATFORM_FIC_NEO1973
-            return read_boolean_from_path( "/sys/devices/platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/gta01-pm-bt.0/power_on" );
+            return read_boolean_from_path( "/sys/bus/platform/devices/neo1973-pm-bt.0/power_on" );
 #endif
             return FALSE;
         case GPS:
 #ifdef NEOD_PLATFORM_FIC_NEO1973
-            return read_boolean_from_path( "/sys/devices/platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/gta01-pm-gps.0/pwron" );
+            return read_boolean_from_path( "/sys/bus/platform/devices/neo1973-pm-gps.0/pwron" );
 #endif
             return FALSE;
         case WIFI:
@@ -676,12 +676,13 @@
             break;
         case BLUETOOTH:
 #ifdef NEOD_PLATFORM_FIC_NEO1973
-            write_boolean_to_path( "/sys/devices/platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/gta01-pm-bt.0/power_on", on );
+            write_boolean_to_path( "/sys/bus/platform/devices/neo1973-pm-bt.0/power_on", on );
+	     write_boolean_to_path( "/sys/bus/platform/devices/neo1973-pm-bt.0/reset", 0 );
 #endif
             break;
         case GPS:
 #ifdef NEOD_PLATFORM_FIC_NEO1973
-            write_boolean_to_path( "/sys/devices/platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/gta01-pm-gps.0/power_on", on );
+            write_boolean_to_path( "/sys/bus/platform/devices/neo1973-pm-gps.0/pwron", on );
 #endif
             break;
         case WIFI:





More information about the commitlog mailing list