Lines Matching +full:sc2731 +full:- +full:regulator
1 // SPDX-License-Identifier: GPL-2.0
10 #include <linux/regulator/driver.h>
11 #include <linux/regulator/of_regulator.h>
14 * SC2731 regulator lock register
20 * SC2731 enable register
39 * SC2731 enable mask
60 * SC2731 vsel register
81 * SC2731 vsel register mask
139 .n_voltages = ((vmax) - (vmin)) / (vstep) + 1, \
217 regmap = dev_get_regmap(pdev->dev.parent, NULL); in sc2731_regulator_probe()
219 dev_err(&pdev->dev, "failed to get regmap.\n"); in sc2731_regulator_probe()
220 return -ENODEV; in sc2731_regulator_probe()
225 dev_err(&pdev->dev, "failed to release regulator lock\n"); in sc2731_regulator_probe()
229 config.dev = &pdev->dev; in sc2731_regulator_probe()
233 rdev = devm_regulator_register(&pdev->dev, ®ulators[i], in sc2731_regulator_probe()
236 dev_err(&pdev->dev, "failed to register regulator %s\n", in sc2731_regulator_probe()
247 .name = "sc27xx-regulator",
256 MODULE_DESCRIPTION("Spreadtrum SC2731 regulator driver");