Change-Id: Ibf5efd18008705052665302fcc1d76fb367636ff
Signed-off-by: giyeol.ok <giyeol.ok@samsung.com>
static void ta_init(void *data)
{
int val, i = 0;
+ int ret;
if (device_get_property(DEVICE_TYPE_EXTCON, PROP_EXTCON_TA_ONLINE, &val) != 0)
return;
vconf_set_int(VCONFKEY_SYSMAN_CHARGER_STATUS,
VCONFKEY_SYSMAN_CHARGER_DISCONNECTED);
}
+ ret = device_get_property(DEVICE_TYPE_POWER,
+ PROP_POWER_CHARGE_NOW, &val);
+ if (ret == 0)
+ vconf_set_int(VCONFKEY_SYSMAN_BATTERY_CHARGE_NOW, val);
}
const struct device_ops ta_device_ops = {