diff options
Diffstat (limited to 'src/device_manager_plugin_exynos.c')
-rw-r--r-- | src/device_manager_plugin_exynos.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/device_manager_plugin_exynos.c b/src/device_manager_plugin_exynos.c index a31506d..d95d31a 100644 --- a/src/device_manager_plugin_exynos.c +++ b/src/device_manager_plugin_exynos.c @@ -688,6 +688,13 @@ int OEM_sys_get_battery_health(int *value) return -1; } +int OEM_sys_get_battery_polling_required(int *value) +{ + *value = 0; + + return 0; +} + static char uart_node_path[MAX_NAME]; static char usb_node_path[MAX_NAME]; @@ -811,6 +818,10 @@ int OEM_sys_set_power_state(int value) switch (value) { case POWER_STATE_SUSPEND: return sys_set_str(POWER_STATE_PATH, "mem"); + case POWER_STATE_PRE_SUSPEND: + return sys_set_str(POWER_STATE_PATH, "pre_suspend"); + case POWER_STATE_POST_RESUME: + return sys_set_str(POWER_STATE_PATH, "post_resume"); } return -1; @@ -1111,6 +1122,7 @@ EXPORT_API const OEM_sys_devman_plugin_interface *OEM_sys_get_devman_plugin_inte devman_plugin_interface_exynos.OEM_sys_get_battery_charge_now = &OEM_sys_get_battery_charge_now; devman_plugin_interface_exynos.OEM_sys_get_battery_present = &OEM_sys_get_battery_present; devman_plugin_interface_exynos.OEM_sys_get_battery_health = &OEM_sys_get_battery_health; + devman_plugin_interface_exynos.OEM_sys_get_battery_polling_required= &OEM_sys_get_battery_polling_required; devman_plugin_interface_exynos.OEM_sys_get_jack_charger_online = &OEM_sys_get_jack_charger_online; devman_plugin_interface_exynos.OEM_sys_get_jack_earjack_online = &OEM_sys_get_jack_earjack_online; |