chgr 31 drivers/misc/qcom-coincell.c static int qcom_coincell_chgr_config(struct qcom_coincell *chgr, int rset, chgr 38 drivers/misc/qcom-coincell.c return regmap_write(chgr->regmap, chgr 39 drivers/misc/qcom-coincell.c chgr->base_addr + QCOM_COINCELL_REG_ENABLE, 0); chgr 47 drivers/misc/qcom-coincell.c dev_err(chgr->dev, "invalid rset-ohms value %d\n", rset); chgr 57 drivers/misc/qcom-coincell.c dev_err(chgr->dev, "invalid vset-millivolts value %d\n", vset); chgr 61 drivers/misc/qcom-coincell.c rc = regmap_write(chgr->regmap, chgr 62 drivers/misc/qcom-coincell.c chgr->base_addr + QCOM_COINCELL_REG_RSET, i); chgr 70 drivers/misc/qcom-coincell.c dev_err(chgr->dev, "could not write to RSET register\n"); chgr 74 drivers/misc/qcom-coincell.c rc = regmap_write(chgr->regmap, chgr 75 drivers/misc/qcom-coincell.c chgr->base_addr + QCOM_COINCELL_REG_VSET, j); chgr 80 drivers/misc/qcom-coincell.c return regmap_write(chgr->regmap, chgr 81 drivers/misc/qcom-coincell.c chgr->base_addr + QCOM_COINCELL_REG_ENABLE, chgr 88 drivers/misc/qcom-coincell.c struct qcom_coincell chgr; chgr 94 drivers/misc/qcom-coincell.c chgr.dev = &pdev->dev; chgr 96 drivers/misc/qcom-coincell.c chgr.regmap = dev_get_regmap(pdev->dev.parent, NULL); chgr 97 drivers/misc/qcom-coincell.c if (!chgr.regmap) { chgr 98 drivers/misc/qcom-coincell.c dev_err(chgr.dev, "Unable to get regmap\n"); chgr 102 drivers/misc/qcom-coincell.c rc = of_property_read_u32(node, "reg", &chgr.base_addr); chgr 111 drivers/misc/qcom-coincell.c dev_err(chgr.dev, chgr 118 drivers/misc/qcom-coincell.c dev_err(chgr.dev, chgr 124 drivers/misc/qcom-coincell.c return qcom_coincell_chgr_config(&chgr, rset, vset, enable);