rk3288:pmic:rk808&act8846&ricoh619:fixed msleep to mdelay in shutdown function

This commit is contained in:
张晴
2014-06-16 14:39:00 +08:00
parent 69f0586518
commit 0cbedcde3c
4 changed files with 7 additions and 7 deletions

View File

@@ -426,7 +426,7 @@ static void ricoh619_device_shutdown(struct i2c_client *client)
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)

View File

@@ -1157,7 +1157,7 @@ static void rk808_shutdown(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 = {

View File

@@ -1171,7 +1171,7 @@ static void ricoh619_displayed_work(struct work_struct *work)
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);
@@ -4099,9 +4099,9 @@ static int ricoh619_batt_get_prop(struct power_supply *psy,
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)
{

View File

@@ -802,7 +802,7 @@ void act8846_device_shutdown(void)
#if 1
if (act8846->pmic_hold_gpio) {
gpio_direction_output(act8846->pmic_hold_gpio,0);
msleep(100);
mdelay(100);
arm_pm_restart('h', "charge");
}