diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2015-06-01 14:38:34 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2015-06-01 14:38:34 +0900 |
commit | b0d0a5d727aedf04a0ecc2a9ae40213eca76b782 (patch) | |
tree | 4bc49500da4d17ef74a59a1be2943ace6f9d1e28 | |
parent | 26a0ee9881d2d14f4358acede296d9fc85e532d3 (diff) | |
download | deviced-b0d0a5d727aedf04a0ecc2a9ae40213eca76b782.tar.gz deviced-b0d0a5d727aedf04a0ecc2a9ae40213eca76b782.tar.bz2 deviced-b0d0a5d727aedf04a0ecc2a9ae40213eca76b782.zip |
battery: Removed insuspend charging support logic
Deviced has supported not to enter the power suspend state
if insuspend charging support value is false.
Some devices could not notify battery events to user space themselves in suspend.
So we used to use a speicific node like insuspend_charging_support
to share if this device could raise their events automatically
between deviced and device.
But now, tizen kernel always support charging manager for holding each events
in suspend state. So deviced don't need to provide this logics.
Change-Id: I5854e66f0025897d850c0ebccdc250d9432686c2
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
-rw-r--r-- | src/battery/power-supply.c | 19 | ||||
-rw-r--r-- | src/display/poll.h | 1 |
2 files changed, 0 insertions, 20 deletions
diff --git a/src/battery/power-supply.c b/src/battery/power-supply.c index ea03b1b4..95dbd881 100644 --- a/src/battery/power-supply.c +++ b/src/battery/power-supply.c @@ -353,28 +353,9 @@ static void noti_batt_full(void) static void check_power_supply(int state) { - int ret = -1; - int val = 0; - char params[BUFF_MAX]; - check_lowbat_charge_device(state); if (update_pm_setting) update_pm_setting(SETTING_CHARGING, state); - - ret = device_get_property(DEVICE_TYPE_POWER, - PROP_POWER_INSUSPEND_CHARGING_SUPPORT, &val); - - if (ret != 0 || val == 1) { - _D("fail to check charger insuspend"); - goto out; - } - - if (state == 0) - pm_unlock_internal(INTERNAL_LOCK_TA, LCD_OFF, STAY_CUR_STATE); - else - pm_lock_internal(INTERNAL_LOCK_TA, LCD_OFF, STAY_CUR_STATE, 0); -out: - _I("ta device %d(capacity %d)", state, battery.capacity); } static void update_present(enum battery_noti_status status) diff --git a/src/display/poll.h b/src/display/poll.h index de5aebf0..06f1d136 100644 --- a/src/display/poll.h +++ b/src/display/poll.h @@ -49,7 +49,6 @@ enum { INTERNAL_LOCK_ODE, INTERNAL_LOCK_POPUP, INTERNAL_LOCK_SOUNDDOCK, - INTERNAL_LOCK_TA, INTERNAL_LOCK_TIME, INTERNAL_LOCK_USB, INTERNAL_LOCK_POWEROFF, |