Changeset 4326


Ignore:
Timestamp:
04/08/08 17:05:59 (5 years ago)
Author:
erin_yueh
Message:

neod: modify gsm, gps, bluetooth device PATH (Erin Yueh)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c

    r4324 r4326  
    645645        case GSM: 
    646646#ifdef NEOD_PLATFORM_FIC_NEO1973 
    647             return read_boolean_from_path( "/sys/devices/platform/gta01-pm-gsm.0/power_on" ); 
     647            return read_boolean_from_path( "/sys/bus/platform/devices/neo1973-pm-gsm.0/power_on" ); 
    648648#endif 
    649649            return FALSE; 
    650650        case BLUETOOTH: 
    651651#ifdef NEOD_PLATFORM_FIC_NEO1973 
    652             return read_boolean_from_path( "/sys/devices/platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/gta01-pm-bt.0/power_on" ); 
     652            return read_boolean_from_path( "/sys/bus/platform/devices/neo1973-pm-bt.0/power_on" ); 
    653653#endif 
    654654            return FALSE; 
    655655        case GPS: 
    656656#ifdef NEOD_PLATFORM_FIC_NEO1973 
    657             return read_boolean_from_path( "/sys/devices/platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/gta01-pm-gps.0/pwron" ); 
     657            return read_boolean_from_path( "/sys/bus/platform/devices/neo1973-pm-gps.0/pwron" ); 
    658658#endif 
    659659            return FALSE; 
     
    677677        case BLUETOOTH: 
    678678#ifdef NEOD_PLATFORM_FIC_NEO1973 
    679             write_boolean_to_path( "/sys/devices/platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/gta01-pm-bt.0/power_on", on ); 
     679            write_boolean_to_path( "/sys/bus/platform/devices/neo1973-pm-bt.0/power_on", on ); 
     680             write_boolean_to_path( "/sys/bus/platform/devices/neo1973-pm-bt.0/reset", 0 ); 
    680681#endif 
    681682            break; 
    682683        case GPS: 
    683684#ifdef NEOD_PLATFORM_FIC_NEO1973 
    684             write_boolean_to_path( "/sys/devices/platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/gta01-pm-gps.0/power_on", on ); 
     685            write_boolean_to_path( "/sys/bus/platform/devices/neo1973-pm-gps.0/pwron", on ); 
    685686#endif 
    686687            break; 
Note: See TracChangeset for help on using the changeset viewer.