Searched refs:vbat_reg_code (Results 1 – 1 of 1) sorted by relevance
638 int vbat_reg_code; in bq2515x_get_batt_reg() local641 ret = regmap_read(bq2515x->regmap, BQ2515X_VBAT_CTRL, &vbat_reg_code); in bq2515x_get_batt_reg()645 return BQ2515X_VBAT_BASE_VOLT + vbat_reg_code * BQ2515X_VBAT_STEP_UV; in bq2515x_get_batt_reg()650 int vbat_reg_code; in bq2515x_set_batt_reg() local655 vbat_reg_code = (val - BQ2515X_VBAT_BASE_VOLT) / BQ2515X_VBAT_STEP_UV; in bq2515x_set_batt_reg()657 return regmap_write(bq2515x->regmap, BQ2515X_VBAT_CTRL, vbat_reg_code); in bq2515x_set_batt_reg()