Lines Matching refs:old_state
498 struct bq25890_state old_state; in bq25890_state_changed() local
501 old_state = bq->state; in bq25890_state_changed()
504 return (old_state.chrg_status != new_state->chrg_status || in bq25890_state_changed()
505 old_state.chrg_fault != new_state->chrg_fault || in bq25890_state_changed()
506 old_state.online != new_state->online || in bq25890_state_changed()
507 old_state.bat_fault != new_state->bat_fault || in bq25890_state_changed()
508 old_state.boost_fault != new_state->boost_fault || in bq25890_state_changed()
509 old_state.vsys_status != new_state->vsys_status); in bq25890_state_changed()
516 struct bq25890_state old_state; in bq25890_handle_state_change() local
519 old_state = bq->state; in bq25890_handle_state_change()
527 } else if (!old_state.online) { /* power inserted */ in bq25890_handle_state_change()