2.0 alpha
[platform/core/system/devman.git] / devices / uart.c
old mode 100755 (executable)
new mode 100644 (file)
index 92c5d4f..f27bd65
@@ -26,8 +26,8 @@
 static int uart_get(int prop, int *val)
 {
        switch (prop) {
-               case UART_PROP_SELECT_PATH:
-                       return plugin_intf->OEM_sys_get_uart_path(val);
+       case UART_PROP_SELECT_PATH:
+               return plugin_intf->OEM_sys_get_uart_path(val);
        }
 
        return -1;
@@ -35,17 +35,17 @@ static int uart_get(int prop, int *val)
 
 static int uart_set(int prop, int val)
 {
-       int ret = -1;
+       int ret = -1 ;
        switch (prop) {
-               case UART_PROP_SELECT_PATH:
-                       ret = plugin_intf->OEM_sys_set_uart_path(val);
-                       if(ret == 0) {
-                               if(val == PATH_CP)
-                                       system("/usr/bin/save_blenv uartpath CP");
-                               else
-                                       system("/usr/bin/save_blenv uartpath AP");
-                       }
-                       return ret;
+       case UART_PROP_SELECT_PATH:
+               ret = plugin_intf->OEM_sys_set_uart_path(val);
+               if(ret == 0){
+                       if(val == PATH_CP)
+                               system("/usr/bin/save_blenv uartpath CP");
+                       else
+                               system("/usr/bin/save_blenv uartpath AP");
+               }
+               return ret;
        }
 
        return -1;