Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/misc/
Dqcom-coincell.c31 static int qcom_coincell_chgr_config(struct qcom_coincell *chgr, int rset, in qcom_coincell_chgr_config() argument
38 return regmap_write(chgr->regmap, in qcom_coincell_chgr_config()
39 chgr->base_addr + QCOM_COINCELL_REG_ENABLE, 0); in qcom_coincell_chgr_config()
47 dev_err(chgr->dev, "invalid rset-ohms value %d\n", rset); in qcom_coincell_chgr_config()
57 dev_err(chgr->dev, "invalid vset-millivolts value %d\n", vset); in qcom_coincell_chgr_config()
61 rc = regmap_write(chgr->regmap, in qcom_coincell_chgr_config()
62 chgr->base_addr + QCOM_COINCELL_REG_RSET, i); in qcom_coincell_chgr_config()
70 dev_err(chgr->dev, "could not write to RSET register\n"); in qcom_coincell_chgr_config()
74 rc = regmap_write(chgr->regmap, in qcom_coincell_chgr_config()
75 chgr->base_addr + QCOM_COINCELL_REG_VSET, j); in qcom_coincell_chgr_config()
[all …]