Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 889aa9ca authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Jonathan Corbet
Browse files

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: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent b1663d7e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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::