Home
last modified time | relevance | path

Searched refs:batovp_reg_code (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/power/supply/
H A Dbq25980_charger.c409 unsigned int batovp_reg_code; in bq25980_get_const_charge_volt() local
412 ret = regmap_read(bq->regmap, BQ25980_BATOVP, &batovp_reg_code); in bq25980_get_const_charge_volt()
416 return ((batovp_reg_code * bq->chip_info->batovp_step) + in bq25980_get_const_charge_volt()
422 unsigned int batovp_reg_code; in bq25980_set_const_charge_volt() local
431 batovp_reg_code = (batovp - bq->chip_info->batovp_offset) / in bq25980_set_const_charge_volt()
434 ret = regmap_write(bq->regmap, BQ25980_BATOVP, batovp_reg_code); in bq25980_set_const_charge_volt()
438 return regmap_write(bq->regmap, BQ25980_BATOVP_ALM, batovp_reg_code); in bq25980_set_const_charge_volt()