Skip to content

Commit

Permalink
bq27x00-battery time to full/empty reporting fixes. Instead of return…
Browse files Browse the repository at this point in the history
…ing -ENODATA, properties will mow be given a value of -1 when time data isnt available.. Messages like: power_supply bq27500-0: driver failed to report `time_to_full_now' property will no longer be reported.

Signed-off-by: Matt Isaacs <izzy@buglabs.net>
  • Loading branch information
Matt Isaacs committed Feb 8, 2011
1 parent bade24e commit 907e7a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/power/bq27x00_battery.c
Expand Up @@ -233,9 +233,9 @@ static int bq27x00_battery_time(struct bq27x00_device_info *di, int reg,
}

if (tval == 65535)
return -ENODATA;

val->intval = tval * 60;
val->intval = -1;
else
val->intval = tval * 60;
return 0;
}

Expand Down

0 comments on commit 907e7a9

Please sign in to comment.