2.0 alpha
[platform/core/system/devman.git] / devices / haptic.c
old mode 100755 (executable)
new mode 100644 (file)
index 703ae28..ad44593
 static int get_haptic(int prop, int *val)
 {
        switch (prop) {
-               case HAPTIC_PROP_LEVEL:
-                       return plugin_intf->OEM_sys_get_haptic_vibetones_level(val);
-               case HAPTIC_PROP_LEVEL_MAX:
-                       return plugin_intf->OEM_sys_get_haptic_vibetones_level_max(val);
+       case HAPTIC_PROP_LEVEL:
+               return plugin_intf->OEM_sys_get_haptic_vibetones_level(val);
+       case HAPTIC_PROP_LEVEL_MAX:
+               return plugin_intf->OEM_sys_get_haptic_vibetones_level_max(val);
        }
 
        return -1;
@@ -38,12 +38,12 @@ static int get_haptic(int prop, int *val)
 static int set_haptic(int prop, int val)
 {
        switch (prop) {
-               case HAPTIC_PROP_ENABLE:
-                       return plugin_intf->OEM_sys_set_haptic_vibetones_enable(val);
-               case HAPTIC_PROP_LEVEL:
-                       return plugin_intf->OEM_sys_set_haptic_vibetones_level(val);
-               case HAPTIC_PROP_ONESHOT:
-                       return plugin_intf->OEM_sys_set_haptic_vibetones_oneshot(val);
+       case HAPTIC_PROP_ENABLE:
+               return plugin_intf->OEM_sys_set_haptic_vibetones_enable(val);
+       case HAPTIC_PROP_LEVEL:
+               return plugin_intf->OEM_sys_set_haptic_vibetones_level(val);
+       case HAPTIC_PROP_ONESHOT:
+               return plugin_intf->OEM_sys_set_haptic_vibetones_oneshot(val);
        }
 
        return -1;