From: Mark Brown Date: Wed, 11 Feb 2009 15:32:06 +0000 (+0000) Subject: regulator: Suggest use of datasheet supply or pin names for consumers X-Git-Tag: v2.6.30-rc1~227^2~18 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe203ddfa5451a13589b1c7da9edab80b7fc06d1;hp=1dd68f01886a2d5cabbbe90b86e82f70917de89c;p=pandora-kernel.git regulator: Suggest use of datasheet supply or pin names for consumers Update the documentation to suggest the use of datasheet names for the supplies requested by regulator consumers. Doing this makes it easier to tie the design for a given platform up with the requirements of the driver for a consumer. Signed-off-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index b85e4a9dafcf..d55a25a6fab2 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -925,9 +925,12 @@ overflow_err: * @id: Supply name or regulator ID. * * Returns a struct regulator corresponding to the regulator producer, - * or IS_ERR() condition containing errno. Use of supply names - * configured via regulator_set_device_supply() is strongly - * encouraged. + * or IS_ERR() condition containing errno. + * + * Use of supply names configured via regulator_set_device_supply() is + * strongly encouraged. It is recommended that the supply name used + * should match the name used for the supply and/or the relevant + * device pins in the datasheet. */ struct regulator *regulator_get(struct device *dev, const char *id) {