static void bq2416x_charger_work(struct work_struct *work) { struct bq2416x_device_info *di = container_of(work, struct bq2416x_device_info, bq2416x_charger_work.work); bq2416x_open_inner_fet(di); if(di->enable_hotcold_temp_charge){ bq2416x_low_current_charge(di); } bq2416x_charger_update_status(di); schedule_delayed_work(&di->bq2416x_charger_work, msecs_to_jiffies(BQ2416x_WATCHDOG_TIMEOUT)); }
static void bq2416x_charger_work(struct work_struct *work) { struct bq2416x_device_info *di = container_of(work, struct bq2416x_device_info, bq2416x_charger_work.work); di->battery_present = is_bq27510_battery_exist(g_battery_measure_by_bq27510_device); bq2416x_open_inner_fet(di); bq2416x_monitor_battery_ntc_charging(di); bq2416x_charger_update_status(di); schedule_delayed_work(&di->bq2416x_charger_work, msecs_to_jiffies(BQ2416x_WATCHDOG_TIMEOUT)); }