| From cb3658082b9edebeb0a05f977b1098b1d96e8208 Mon Sep 17 00:00:00 2001 |
| From: Mark Brown <broonie@opensource.wolfsonmicro.com> |
| Date: Thu, 8 Sep 2011 10:37:31 -0700 |
| Subject: regulator: Fix some bitrot in the machine driver documentation |
| |
| The documentation for the machine driver was rather badly bitrotted, |
| using pointers to struct device rather than dev_name() to hook up the |
| consumers. Update to use dev_name(). |
| |
| Reported-by: Philip Rakity <prakity@marvell.com> |
| Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> |
| (cherry picked from commit 2c1ba398ac9da3305815f6ae8e95ae2b9fd3b5ff) |
| |
| Signed-off-by: Simon Horman <horms@verge.net.au> |
| --- |
| Documentation/power/regulator/machine.txt | 8 ++++---- |
| 1 file changed, 4 insertions(+), 4 deletions(-) |
| |
| diff --git a/Documentation/power/regulator/machine.txt b/Documentation/power/regulator/machine.txt |
| index b42419b..311c61f 100644 |
| --- a/Documentation/power/regulator/machine.txt |
| +++ b/Documentation/power/regulator/machine.txt |
| @@ -16,7 +16,7 @@ initialisation code by creating a struct regulator_consumer_supply for |
| each regulator. |
| |
| struct regulator_consumer_supply { |
| - struct device *dev; /* consumer */ |
| + const char *dev_name; /* consumer dev_name() */ |
| const char *supply; /* consumer supply - e.g. "vcc" */ |
| }; |
| |
| @@ -24,13 +24,13 @@ e.g. for the machine above |
| |
| static struct regulator_consumer_supply regulator1_consumers[] = { |
| { |
| - .dev = &platform_consumerB_device.dev, |
| - .supply = "Vcc", |
| + .dev_name = "dev_name(consumer B)", |
| + .supply = "Vcc", |
| },}; |
| |
| static struct regulator_consumer_supply regulator2_consumers[] = { |
| { |
| - .dev = &platform_consumerA_device.dev, |
| + .dev = "dev_name(consumer A"), |
| .supply = "Vcc", |
| },}; |
| |
| -- |
| 1.7.10.1.362.g242cab3 |
| |