Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 667c667
- < pr_info("soc:%d, soc_calib:%d, VOLT:%d, fcc:%d, current:%d\n",
- ---
- > pr_info("soc:%d, soc_calib:%d, VOLT:%d, current:%d\n",
- 669d668
- < bq27541_full_capacity(di),
- 783,798d781
- < static int bq27541_full_capacity(struct bq27541_device_info *di)
- < {
- < int ret;
- < int cap = 0;
- <
- < if(di->alow_reading) {
- < ret = bq27541_read(BQ27541_REG_FCC, &cap, 0, di);
- < if (ret) {
- < pr_err("error reading full capacity.\n");
- < return ret;
- < }
- < }
- <
- < return cap;
- < }
- <
- 824,828d806
- < }
- <
- < static int bq27541_get_batt_full_capacity(void)
- < {
- < return bq27541_full_capacity(bq27541_di);
Advertisement
Add Comment
Please, Sign In to add comment