int i;
int ret;
unsigned int rtc_int_sts = 0;
- int cur_irq;
+ int cur_irq = 0;
ret = ricoh619_read(ricoh619->dev, RICOH619_INT_IR_SYS, &ricoh619_pwr_key_reg);
for (i = 0; i <RICOH619_NR_IRQS; ++i) {
const struct ricoh619_irq_data *data = &ricoh619_irqs[i];
- if ((int_sts[data->mask_reg_index] & (1 << data->int_en_bit)) &&(ricoh619->group_irq_en[data->master_bit] & (1 << data->grp_index)))
+ if ((int_sts[data->mask_reg_index] & (1 << data->int_en_bit)) &&(ricoh619->group_irq_en[data->master_bit] & (1 << data->grp_index))){
cur_irq = irq_find_mapping(ricoh619->irq_domain, i);
- if (cur_irq)
- handle_nested_irq(cur_irq);
+ if (cur_irq)
+ handle_nested_irq(cur_irq);
+ }
}
// printk(KERN_INFO "PMU: %s: out\n", __func__);
struct ricoh619_battery_info, vadp_drop_work.work);
int ret = 0;
- uint8_t data[5];
+ uint8_t data[6];
u16 reg[2];
RICOH_FG_DBG("PMU vadp_drop_work:%s In\n", __func__);
/* this setting is same as battery driver of 584 */
case POWER_SUPPLY_PROP_PRESENT:
- val->intval = info->present;
+ // val->intval = info->present;
+ val->intval = 1;
break;
/* current voltage is get from fuel gauge */
if(info->chg_complete_sleep_flag == 1)
{
- info->chg_complete_tm_ov_flag == 1;
+ info->chg_complete_tm_ov_flag = 1;
info->chg_complete_sleep_flag = 0;
}