mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 15:15:47 +00:00
regulator: Allow init_data to be passed to fixed voltage regulators
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
93c62da23a
commit
bcf3402c50
2 changed files with 5 additions and 1 deletions
|
@ -73,7 +73,8 @@ static int regulator_fixed_voltage_probe(struct platform_device *pdev)
|
||||||
|
|
||||||
drvdata->microvolts = config->microvolts;
|
drvdata->microvolts = config->microvolts;
|
||||||
|
|
||||||
drvdata->dev = regulator_register(&drvdata->desc, drvdata);
|
drvdata->dev = regulator_register(&drvdata->desc, &pdev->dev,
|
||||||
|
config->init_data, drvdata);
|
||||||
if (IS_ERR(drvdata->dev)) {
|
if (IS_ERR(drvdata->dev)) {
|
||||||
ret = PTR_ERR(drvdata->dev);
|
ret = PTR_ERR(drvdata->dev);
|
||||||
goto err_name;
|
goto err_name;
|
||||||
|
|
|
@ -14,9 +14,12 @@
|
||||||
#ifndef __REGULATOR_FIXED_H
|
#ifndef __REGULATOR_FIXED_H
|
||||||
#define __REGULATOR_FIXED_H
|
#define __REGULATOR_FIXED_H
|
||||||
|
|
||||||
|
struct regulator_init_data;
|
||||||
|
|
||||||
struct fixed_voltage_config {
|
struct fixed_voltage_config {
|
||||||
const char *supply_name;
|
const char *supply_name;
|
||||||
int microvolts;
|
int microvolts;
|
||||||
|
struct regulator_init_data *init_data;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue