Home
last modified time | relevance | path

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

/linux/drivers/power/supply/
H A Dbq256xx_charger.c167 u32 vbatreg; member
299 int (*bq256xx_set_vbatreg)(struct bq256xx_device *bq, int vbatreg);
624 static int bq25618_619_set_chrg_volt(struct bq256xx_device *bq, int vbatreg) in bq25618_619_set_chrg_volt() argument
630 vbatreg = clamp(vbatreg, BQ25618_VBATREG_MIN_uV, vbatreg_max); in bq25618_619_set_chrg_volt()
632 if (vbatreg > BQ25618_VBATREG_THRESH_uV) in bq25618_619_set_chrg_volt()
633 vbatreg_reg_code = ((vbatreg - in bq25618_619_set_chrg_volt()
637 vbatreg_reg_code = bq256xx_array_parse(array_size, vbatreg, in bq25618_619_set_chrg_volt()
646 static int bq25611d_set_chrg_volt(struct bq256xx_device *bq, int vbatreg) in bq25611d_set_chrg_volt() argument
652 vbatreg = clamp(vbatreg, BQ25611D_VBATREG_MIN_uV, vbatreg_max); in bq25611d_set_chrg_volt()
654 if (vbatreg > BQ25611D_VBATREG_THRESH_uV) in bq25611d_set_chrg_volt()
[all …]
H A Dbq2515x_charger.c146 int vbatreg; member
861 ret = bq2515x->init_data.vbatreg; in bq2515x_battery_get_property()
971 bq2515x->init_data.vbatreg = BQ2515X_DEFAULT_VBAT_REG_UV; in bq2515x_hw_init()
979 bq2515x->init_data.vbatreg = in bq2515x_hw_init()
991 ret = bq2515x_set_batt_reg(bq2515x, bq2515x->init_data.vbatreg); in bq2515x_hw_init()