mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] docs: clk: fix struct syntax
@ 2019-05-31 14:30 Luca Ceresoli
  2019-06-07 17:35 ` Jonathan Corbet
  0 siblings, 1 reply; 2+ messages in thread
From: Luca Ceresoli @ 2019-05-31 14:30 UTC (permalink / raw)
  To: linux-doc; +Cc: Jonathan Corbet, linux-kernel, Luca Ceresoli

The clk_foo_ops struct example has syntax errors. Fix it so it can be
copy-pasted and used more easily.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
---
 Documentation/driver-api/clk.rst | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Documentation/driver-api/clk.rst b/Documentation/driver-api/clk.rst
index 593cca5058b1..3cad45d14187 100644
--- a/Documentation/driver-api/clk.rst
+++ b/Documentation/driver-api/clk.rst
@@ -175,9 +175,9 @@ the following::
 To take advantage of your data you'll need to support valid operations
 for your clk::
 
-	struct clk_ops clk_foo_ops {
-		.enable		= &clk_foo_enable;
-		.disable	= &clk_foo_disable;
+	struct clk_ops clk_foo_ops = {
+		.enable		= &clk_foo_enable,
+		.disable	= &clk_foo_disable,
 	};
 
 Implement the above functions using container_of::
-- 
2.21.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] docs: clk: fix struct syntax
  2019-05-31 14:30 [PATCH] docs: clk: fix struct syntax Luca Ceresoli
@ 2019-06-07 17:35 ` Jonathan Corbet
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2019-06-07 17:35 UTC (permalink / raw)
  To: Luca Ceresoli; +Cc: linux-doc, linux-kernel

On Fri, 31 May 2019 16:30:16 +0200
Luca Ceresoli <luca@lucaceresoli.net> wrote:

> The clk_foo_ops struct example has syntax errors. Fix it so it can be
> copy-pasted and used more easily.
> 
> Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>

Applied, thanks.

jon

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-07 17:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-31 14:30 [PATCH] docs: clk: fix struct syntax Luca Ceresoli
2019-06-07 17:35 ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome