Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Dbq25980_charger.c323 unsigned int busovp_reg_code; in bq25980_get_input_volt_lim() local
336 ret = regmap_read(bq->regmap, BQ25980_BUSOVP, &busovp_reg_code); in bq25980_get_input_volt_lim()
340 return (busovp_reg_code * busovp_step) + busovp_offset; in bq25980_get_input_volt_lim()
345 unsigned int busovp_reg_code; in bq25980_set_input_volt_lim() local
366 busovp_reg_code = (busovp - busovp_offset) / busovp_step; in bq25980_set_input_volt_lim()
368 ret = regmap_write(bq->regmap, BQ25980_BUSOVP, busovp_reg_code); in bq25980_set_input_volt_lim()
372 return regmap_write(bq->regmap, BQ25980_BUSOVP_ALM, busovp_reg_code); in bq25980_set_input_volt_lim()