docs: clk: fix struct syntax
authorLuca Ceresoli <luca@lucaceresoli.net>
Fri, 31 May 2019 14:30:16 +0000 (16:30 +0200)
committerJonathan Corbet <corbet@lwn.net>
Fri, 7 Jun 2019 17:35:15 +0000 (11:35 -0600)
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>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/driver-api/clk.rst

index 593cca5..3cad45d 100644 (file)
@@ -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::