Lines Matching +full:dvc +full:-
1 // SPDX-License-Identifier: GPL-2.0-only
22 /* LDO1 with DVC[0..3] */
45 /* BUCK1 with DVC[0..3] */
78 * vreg - the buck regs string.
79 * ereg - the string for the enable register.
80 * ebit - the bit number in the enable register.
81 * amax - the current
84 * n_volt - Number of available selectors
108 * vreg - the LDO regs string
109 * ereg - the string for the enable register.
110 * ebit - the bit number in the enable register.
111 * amax - the current
112 * volt_table - the LDO voltage table
172 return info->max_ua; in pm800_get_current_limit()
228 struct pm80x_chip *chip = dev_get_drvdata(pdev->dev.parent); in pm800_regulator_probe()
229 struct pm80x_platform_data *pdata = dev_get_platdata(pdev->dev.parent); in pm800_regulator_probe()
234 if (pdata && pdata->num_regulators) { in pm800_regulator_probe()
238 for (i = 0; i < ARRAY_SIZE(pdata->regulators); i++) { in pm800_regulator_probe()
239 if (pdata->regulators[i]) in pm800_regulator_probe()
242 if (count != pdata->num_regulators) in pm800_regulator_probe()
243 return -EINVAL; in pm800_regulator_probe()
246 config.dev = chip->dev; in pm800_regulator_probe()
247 config.regmap = chip->subchip->regmap_power; in pm800_regulator_probe()
251 if (pdata && pdata->num_regulators) { in pm800_regulator_probe()
252 init_data = pdata->regulators[i]; in pm800_regulator_probe()
261 regulator = devm_regulator_register(&pdev->dev, in pm800_regulator_probe()
265 dev_err(&pdev->dev, "Failed to register %s\n", in pm800_regulator_probe()
276 .name = "88pm80x-regulator",
286 MODULE_ALIAS("platform:88pm800-regulator");