ret = ricoh619_write(ricoh619->dev, RICOH619_INTC_INTEN, 0);
ret = ricoh619_clr_bits(ricoh619->dev,RICOH619_PWR_REP_CNT,(0x1<<0));//Not repeat power ON after power off(Power Off/N_OE)
mutex_lock(&ricoh619->io_lock);
- msleep(100);
+ mdelay(100);
}
EXPORT_SYMBOL_GPL(ricoh619_device_shutdown);
static void ricoh619_power_off(void)
ret = rk808_set_bits(rk808, RK808_INT_STS_MSK_REG1,(0x3<<5),(0x3<<5)); //close rtc int when power off
ret = rk808_clear_bits(rk808, RK808_RTC_INT_REG,(0x3<<2)); //close rtc int when power off
mutex_lock(&rk808->io_lock);
- msleep(100);
+ mdelay(100);
}
static struct syscore_ops rk808_syscore_ops = {
info->soca->soc = calc_capacity(info) * 100;
}
}
- if (RICOH619_SOCA_DISP == info->soca->status) {
+ else if (RICOH619_SOCA_DISP == info->soca->status) {
info->soca->soc = calc_capacity_2(info);
if (info->entry_factory_mode){
val->intval = 100;
info->capacity = 100;
- } else if (info->soca->displayed_soc < 0) {
- val->intval = 10;
- info->capacity = 10;
+ } else if ((info->soca->displayed_soc < 0) || (info->cur_voltage == 0)) {
+ val->intval = 50;
+ info->capacity = 50;
} else {
if(info->chg_complete_tm_ov_flag == 1)
{
#if 1
if (act8846->pmic_hold_gpio) {
gpio_direction_output(act8846->pmic_hold_gpio,0);
- msleep(100);
+ mdelay(100);
arm_pm_restart('h', "charge");
}