]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
regulator: Allow init_data to be passed to fixed voltage regulators
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 19 Jan 2009 13:37:04 +0000 (13:37 +0000)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Tue, 31 Mar 2009 08:56:21 +0000 (09:56 +0100)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/fixed.c
include/linux/regulator/fixed.h

index d31db3e14913fb1d1281c6a4eea49bf145242b76..23d554628a76128e6786bb9666a67c0179e4ec32 100644 (file)
@@ -73,7 +73,8 @@ static int regulator_fixed_voltage_probe(struct platform_device *pdev)
 
        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)) {
                ret = PTR_ERR(drvdata->dev);
                goto err_name;
index 1387a5d2190e627801c90ec0308b538265f6d1c6..91b4da31f1b510a0c21bc5d579b0143e753152ec 100644 (file)
 #ifndef __REGULATOR_FIXED_H
 #define __REGULATOR_FIXED_H
 
+struct regulator_init_data;
+
 struct fixed_voltage_config {
        const char *supply_name;
        int microvolts;
+       struct regulator_init_data *init_data;
 };
 
 #endif