Commit 2c1ba398 authored by Mark Brown's avatar Mark Brown

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: default avatarPhilip Rakity <prakity@marvell.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 437afd2a
...@@ -16,7 +16,7 @@ initialisation code by creating a struct regulator_consumer_supply for ...@@ -16,7 +16,7 @@ initialisation code by creating a struct regulator_consumer_supply for
each regulator. each regulator.
struct regulator_consumer_supply { struct regulator_consumer_supply {
struct device *dev; /* consumer */ const char *dev_name; /* consumer dev_name() */
const char *supply; /* consumer supply - e.g. "vcc" */ const char *supply; /* consumer supply - e.g. "vcc" */
}; };
...@@ -24,13 +24,13 @@ e.g. for the machine above ...@@ -24,13 +24,13 @@ e.g. for the machine above
static struct regulator_consumer_supply regulator1_consumers[] = { static struct regulator_consumer_supply regulator1_consumers[] = {
{ {
.dev = &platform_consumerB_device.dev, .dev_name = "dev_name(consumer B)",
.supply = "Vcc", .supply = "Vcc",
},}; },};
static struct regulator_consumer_supply regulator2_consumers[] = { static struct regulator_consumer_supply regulator2_consumers[] = {
{ {
.dev = &platform_consumerA_device.dev, .dev = "dev_name(consumer A"),
.supply = "Vcc", .supply = "Vcc",
},}; },};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment