* [PATCH 1/2] MAINTAINERS: regulator: Add Documentation/power/regulator/ @ 2017-11-19 5:09 Jonathan Neuschäfer 2017-11-19 5:09 ` [PATCH 2/2] regulator: Update code examples in documentation Jonathan Neuschäfer 2017-11-28 4:22 ` [PATCH 1/2] MAINTAINERS: regulator: Add Documentation/power/regulator/ Jonathan Neuschäfer 0 siblings, 2 replies; 5+ messages in thread From: Jonathan Neuschäfer @ 2017-11-19 5:09 UTC (permalink / raw) To: linux-pm Cc: linux-kernel, Liam Girdwood, Mark Brown, Jonathan Neuschäfer Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2811a211632c..a644d41e088c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14447,6 +14447,7 @@ W: http://www.slimlogic.co.uk/?p=48 T: git git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git S: Supported F: Documentation/devicetree/bindings/regulator/ +F: Documentation/power/regulator/ F: drivers/regulator/ F: include/dt-bindings/regulator/ F: include/linux/regulator/ -- 2.11.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] regulator: Update code examples in documentation 2017-11-19 5:09 [PATCH 1/2] MAINTAINERS: regulator: Add Documentation/power/regulator/ Jonathan Neuschäfer @ 2017-11-19 5:09 ` Jonathan Neuschäfer 2017-11-28 4:22 ` [PATCH 1/2] MAINTAINERS: regulator: Add Documentation/power/regulator/ Jonathan Neuschäfer 1 sibling, 0 replies; 5+ messages in thread From: Jonathan Neuschäfer @ 2017-11-19 5:09 UTC (permalink / raw) To: linux-pm Cc: linux-kernel, Liam Girdwood, Mark Brown, Jonathan Neuschäfer This involves using the REGULATOR_SUPPLY initializer macro and reindenting some of the code. Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> --- Documentation/power/regulator/machine.txt | 36 ++++++++++++++----------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/Documentation/power/regulator/machine.txt b/Documentation/power/regulator/machine.txt index 757e3b53dc11..eff4dcaaa252 100644 --- a/Documentation/power/regulator/machine.txt +++ b/Documentation/power/regulator/machine.txt @@ -23,16 +23,12 @@ struct regulator_consumer_supply { e.g. for the machine above static struct regulator_consumer_supply regulator1_consumers[] = { -{ - .dev_name = "dev_name(consumer B)", - .supply = "Vcc", -},}; + REGULATOR_SUPPLY("Vcc", "consumer B"), +}; static struct regulator_consumer_supply regulator2_consumers[] = { -{ - .dev = "dev_name(consumer A"), - .supply = "Vcc", -},}; + REGULATOR_SUPPLY("Vcc", "consumer A"), +}; This maps Regulator-1 to the 'Vcc' supply for Consumer B and maps Regulator-2 to the 'Vcc' supply for Consumer A. @@ -78,20 +74,20 @@ static struct regulator_init_data regulator2_data = { Finally the regulator devices must be registered in the usual manner. static struct platform_device regulator_devices[] = { -{ - .name = "regulator", - .id = DCDC_1, - .dev = { - .platform_data = ®ulator1_data, + { + .name = "regulator", + .id = DCDC_1, + .dev = { + .platform_data = ®ulator1_data, + }, }, -}, -{ - .name = "regulator", - .id = DCDC_2, - .dev = { - .platform_data = ®ulator2_data, + { + .name = "regulator", + .id = DCDC_2, + .dev = { + .platform_data = ®ulator2_data, + }, }, -}, }; /* register regulator 1 device */ platform_device_register(®ulator_devices[0]); -- 2.11.0 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] MAINTAINERS: regulator: Add Documentation/power/regulator/ 2017-11-19 5:09 [PATCH 1/2] MAINTAINERS: regulator: Add Documentation/power/regulator/ Jonathan Neuschäfer 2017-11-19 5:09 ` [PATCH 2/2] regulator: Update code examples in documentation Jonathan Neuschäfer @ 2017-11-28 4:22 ` Jonathan Neuschäfer 2017-11-28 15:15 ` Mark Brown 1 sibling, 1 reply; 5+ messages in thread From: Jonathan Neuschäfer @ 2017-11-28 4:22 UTC (permalink / raw) To: Jonathan Neuschäfer Cc: linux-pm, linux-kernel, Liam Girdwood, Mark Brown, linux-doc [-- Attachment #1: Type: text/plain, Size: 773 bytes --] On Sun, Nov 19, 2017 at 06:09:06AM +0100, Jonathan Neuschäfer wrote: > Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> > --- > MAINTAINERS | 1 + > 1 file changed, 1 insertion(+) Ping. Should I resend this series with Cc: linux-doc@vger.kernel.org? > > diff --git a/MAINTAINERS b/MAINTAINERS > index 2811a211632c..a644d41e088c 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -14447,6 +14447,7 @@ W: http://www.slimlogic.co.uk/?p=48 > T: git git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git > S: Supported > F: Documentation/devicetree/bindings/regulator/ > +F: Documentation/power/regulator/ > F: drivers/regulator/ > F: include/dt-bindings/regulator/ > F: include/linux/regulator/ > -- > 2.11.0 > [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] MAINTAINERS: regulator: Add Documentation/power/regulator/ 2017-11-28 4:22 ` [PATCH 1/2] MAINTAINERS: regulator: Add Documentation/power/regulator/ Jonathan Neuschäfer @ 2017-11-28 15:15 ` Mark Brown 2017-11-28 20:25 ` Jonathan Neuschäfer 0 siblings, 1 reply; 5+ messages in thread From: Mark Brown @ 2017-11-28 15:15 UTC (permalink / raw) To: Jonathan Neuschäfer; +Cc: linux-pm, linux-kernel, Liam Girdwood, linux-doc [-- Attachment #1: Type: text/plain, Size: 1076 bytes --] On Tue, Nov 28, 2017 at 05:22:02AM +0100, Jonathan Neuschäfer wrote: > On Sun, Nov 19, 2017 at 06:09:06AM +0100, Jonathan Neuschäfer wrote: > > Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> > > --- > > MAINTAINERS | 1 + > > 1 file changed, 1 insertion(+) > > Ping. > > Should I resend this series with Cc: linux-doc@vger.kernel.org? Please don't send content free pings and please allow a reasonable time for review. People get busy, go on holiday, attend conferences and so on so unless there is some reason for urgency (like critical bug fixes) please allow at least a couple of weeks for review. If there have been review comments then people may be waiting for those to be addressed. Sending content free pings adds to the mail volume (if they are seen at all) which is often the problem and since they can't be reviewed directly if something has gone wrong you'll have to resend the patches anyway, though there are some other maintainers who like them - if in doubt look at how patches for the subsystem are normally handled. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 488 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] MAINTAINERS: regulator: Add Documentation/power/regulator/ 2017-11-28 15:15 ` Mark Brown @ 2017-11-28 20:25 ` Jonathan Neuschäfer 0 siblings, 0 replies; 5+ messages in thread From: Jonathan Neuschäfer @ 2017-11-28 20:25 UTC (permalink / raw) To: Mark Brown Cc: Jonathan Neuschäfer, linux-pm, linux-kernel, Liam Girdwood, linux-doc [-- Attachment #1: Type: text/plain, Size: 1261 bytes --] On Tue, Nov 28, 2017 at 03:15:37PM +0000, Mark Brown wrote: > On Tue, Nov 28, 2017 at 05:22:02AM +0100, Jonathan Neuschäfer wrote: > > On Sun, Nov 19, 2017 at 06:09:06AM +0100, Jonathan Neuschäfer wrote: > > > Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> > > > --- > > > MAINTAINERS | 1 + > > > 1 file changed, 1 insertion(+) > > > > Ping. > > > > Should I resend this series with Cc: linux-doc@vger.kernel.org? > > Please don't send content free pings and please allow a reasonable time > for review. People get busy, go on holiday, attend conferences and so > on so unless there is some reason for urgency (like critical bug fixes) > please allow at least a couple of weeks for review. If there have been > review comments then people may be waiting for those to be addressed. Okay. Sorry. > Sending content free pings adds to the mail volume (if they are seen at > all) which is often the problem and since they can't be reviewed > directly if something has gone wrong you'll have to resend the patches > anyway, though there are some other maintainers who like them - if in > doubt look at how patches for the subsystem are normally handled. Right, this makes sense. Thanks, Jonathan Neuschäfer [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-11-28 20:25 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2017-11-19 5:09 [PATCH 1/2] MAINTAINERS: regulator: Add Documentation/power/regulator/ Jonathan Neuschäfer 2017-11-19 5:09 ` [PATCH 2/2] regulator: Update code examples in documentation Jonathan Neuschäfer 2017-11-28 4:22 ` [PATCH 1/2] MAINTAINERS: regulator: Add Documentation/power/regulator/ Jonathan Neuschäfer 2017-11-28 15:15 ` Mark Brown 2017-11-28 20:25 ` Jonathan Neuschäfer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox