Verified Commit bae86d10 authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak
Browse files

bq25890: Fix equality check in bq25890_log_ntc_faults

This function is supposed to react when the new state differs
from the old one so it can log the new state. The check however
returned early in case of inequality, which defeats the purpose
of the function.
parent 27b92208
Pipeline #73325 passed with stage
in 74 minutes and 36 seconds
......@@ -648,7 +648,7 @@ static int bq25890_get_chip_state(struct bq25890_device *bq,
static void bq25890_log_ntc_faults(struct bq25890_device *bq, struct bq25890_state *new_state)
{
if (new_state->ntc_fault != bq->state.ntc_fault)
if (new_state->ntc_fault == bq->state.ntc_fault)
return;
switch(new_state->ntc_fault) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment