diff options
author | keewook.lee <keeewook.lee@samsung.com> | 2012-08-27 15:31:13 +0900 |
---|---|---|
committer | keewook.lee <keeewook.lee@samsung.com> | 2012-08-27 15:31:13 +0900 |
commit | 06c1a493800745ba16812f25683ccb3743464da9 (patch) | |
tree | ce5f5d3f38ce55bd5af526877af4a416d9f48e14 /src/device_manager_plugin_exynos.c | |
parent | c78ff642004dff6acecdeb1a2e79651b40a5f71d (diff) | |
download | device-manager-plugin-exynos-06c1a493800745ba16812f25683ccb3743464da9.tar.gz device-manager-plugin-exynos-06c1a493800745ba16812f25683ccb3743464da9.tar.bz2 device-manager-plugin-exynos-06c1a493800745ba16812f25683ccb3743464da9.zip |
Inset the power state.
Signed-off-by: keewook.lee <keeewook.lee@samsung.com>
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; |