Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Dbq25980_charger.c293 static int bq25980_set_input_curr_lim(struct bq25980_device *bq, int busocp) in bq25980_set_input_curr_lim() argument
298 if (!busocp) in bq25980_set_input_curr_lim()
303 if (busocp < BQ25980_BUSOCP_MIN_uA) in bq25980_set_input_curr_lim()
304 busocp = BQ25980_BUSOCP_MIN_uA; in bq25980_set_input_curr_lim()
307 busocp = min(busocp, bq->chip_info->busocp_sc_max); in bq25980_set_input_curr_lim()
309 busocp = min(busocp, bq->chip_info->busocp_byp_max); in bq25980_set_input_curr_lim()
311 busocp_reg_code = (busocp - BQ25980_BUSOCP_OFFSET_uA) in bq25980_set_input_curr_lim()