regulator: Allow init_data to be passed to fixed voltage regulators

Previous thread: FS-Cache: Implement the cookie management part of the netfs API by Linux Kernel Mailing List on Friday, April 3, 2009 - 11:10 am. (1 message)

Next thread: regulator: Make fixed voltage regulators visible in Kconfig by Linux Kernel Mailing List on Friday, April 3, 2009 - 11:11 am. (1 message)
From: Linux Kernel Mailing List
Date: Friday, April 3, 2009 - 11:11 am

Gitweb:     http://git.kernel.org/linus/bcf3402c50a48d51462f37f72129d9c4369702b4
Commit:     bcf3402c50a48d51462f37f72129d9c4369702b4
Parent:     93c62da23a717f59933ec799688da42f71d8c6c4
Author:     Mark Brown <broonie@opensource.wolfsonmicro.com>
AuthorDate: Mon Jan 19 13:37:04 2009 +0000
Committer:  Liam Girdwood <lrg@slimlogic.co.uk>
CommitDate: Tue Mar 31 09:56:21 2009 +0100

    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>
---
 drivers/regulator/fixed.c       |    3 ++-
 include/linux/regulator/fixed.h |    3 +++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/regulator/fixed.c b/drivers/regulator/fixed.c
index d31db3e..23d5546 100644
--- a/drivers/regulator/fixed.c
+++ b/drivers/regulator/fixed.c
@@ -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;
diff --git a/include/linux/regulator/fixed.h b/include/linux/regulator/fixed.h
index 1387a5d..91b4da3 100644
--- a/include/linux/regulator/fixed.h
+++ b/include/linux/regulator/fixed.h
@@ -14,9 +14,12 @@
 #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
--

Previous thread: FS-Cache: Implement the cookie management part of the netfs API by Linux Kernel Mailing List on Friday, April 3, 2009 - 11:10 am. (1 message)

Next thread: regulator: Make fixed voltage regulators visible in Kconfig by Linux Kernel Mailing List on Friday, April 3, 2009 - 11:11 am. (1 message)