Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367473
b: refs/heads/master
c: 2c4c40a
h: refs/heads/master
i:
  367471: a0e2535
v: v3
  • Loading branch information
Rupesh Kumar authored and Lee Jones committed Mar 7, 2013
1 parent ff74a40 commit cfa515a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: db43e6c473b57d4e7a55c4bd6edef71f40f13eae
refs/heads/master: 2c4c40ac0052eaf9b14009635ab475362e88c6e0
6 changes: 3 additions & 3 deletions trunk/drivers/power/ab8500_btemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,6 @@ static void ab8500_btemp_periodic_work(struct work_struct *work)
struct ab8500_btemp, btemp_periodic_work.work);

if (!di->initialized) {
di->initialized = true;
/* Identify the battery */
if (ab8500_btemp_id(di) < 0)
dev_warn(di->dev, "failed to identify the battery\n");
Expand All @@ -622,8 +621,9 @@ static void ab8500_btemp_periodic_work(struct work_struct *work)
* same temperature. Else only allow 1 degree change from previous
* reported value in the direction of the new measurement.
*/
if (bat_temp == di->prev_bat_temp || !di->initialized) {
if (di->bat_temp != di->prev_bat_temp || !di->initialized) {
if ((bat_temp == di->prev_bat_temp) || !di->initialized) {
if ((di->bat_temp != di->prev_bat_temp) || !di->initialized) {
di->initialized = true;
di->bat_temp = bat_temp;
power_supply_changed(&di->btemp_psy);
}
Expand Down

0 comments on commit cfa515a

Please sign in to comment.