Guest User

Untitled

a guest
Aug 22nd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.62 KB | None | 0 0
  1. 667c667
  2. <       pr_info("soc:%d, soc_calib:%d, VOLT:%d, fcc:%d, current:%d\n",
  3. ---
  4. >       pr_info("soc:%d, soc_calib:%d, VOLT:%d, current:%d\n",
  5. 669d668
  6. <               bq27541_full_capacity(di),
  7. 783,798d781
  8. < static int bq27541_full_capacity(struct bq27541_device_info *di)
  9. < {
  10. <   int ret;
  11. <   int cap = 0;
  12. <
  13. <   if(di->alow_reading) {
  14. <       ret = bq27541_read(BQ27541_REG_FCC, &cap, 0, di);
  15. <       if (ret) {
  16. <           pr_err("error reading full capacity.\n");
  17. <           return ret;
  18. <       }
  19. <   }
  20. <
  21. <   return cap;
  22. < }
  23. <
  24. 824,828d806
  25. < }
  26. <
  27. < static int bq27541_get_batt_full_capacity(void)
  28. < {
  29. <   return bq27541_full_capacity(bq27541_di);
Advertisement
Add Comment
Please, Sign In to add comment