Searched refs:cw_bat (Results 1 – 1 of 1) sorted by relevance
| /Linux-v5.15/drivers/power/supply/ |
| D | cw2015_battery.c | 83 static int cw_read_word(struct cw_battery *cw_bat, u8 reg, u16 *val) in cw_read_word() argument 88 ret = regmap_bulk_read(cw_bat->regmap, reg, &value, sizeof(value)); in cw_read_word() 96 static int cw_update_profile(struct cw_battery *cw_bat) in cw_update_profile() argument 103 ret = regmap_read(cw_bat->regmap, CW2015_REG_MODE, ®_val); in cw_update_profile() 109 dev_err(cw_bat->dev, in cw_update_profile() 115 ret = regmap_raw_write(cw_bat->regmap, CW2015_REG_BATINFO, in cw_update_profile() 116 cw_bat->bat_profile, in cw_update_profile() 124 reg_val |= CW2015_ATHD(cw_bat->alert_level); in cw_update_profile() 125 ret = regmap_write(cw_bat->regmap, CW2015_REG_CONFIG, reg_val); in cw_update_profile() 132 ret = regmap_write(cw_bat->regmap, CW2015_REG_MODE, reg_val); in cw_update_profile() [all …]
|