diff options
author | Luca Ceresoli | 2019-05-31 16:30:16 +0200 |
---|---|---|
committer | Jonathan Corbet | 2019-06-07 11:35:15 -0600 |
commit | 889aa9ca930602a0e860cfb89e467c2a7a729b1b (patch) | |
tree | 9482bb4f7972cec300674118e3f0b1b8888c8567 /Documentation/driver-api | |
parent | b1663d7e3a7961fc45262fd68a89253f2803036c (diff) |
docs: clk: fix struct syntax
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>
Diffstat (limited to 'Documentation/driver-api')
-rw-r--r-- | Documentation/driver-api/clk.rst | 6 |
1 files 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:: |