Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Luca Ceresoli and committed by
Jonathan Corbet
889aa9ca b1663d7e

+3 -3
+3 -3
Documentation/driver-api/clk.rst
··· 175 175 To take advantage of your data you'll need to support valid operations 176 176 for your clk:: 177 177 178 - struct clk_ops clk_foo_ops { 179 - .enable = &clk_foo_enable; 180 - .disable = &clk_foo_disable; 178 + struct clk_ops clk_foo_ops = { 179 + .enable = &clk_foo_enable, 180 + .disable = &clk_foo_disable, 181 181 }; 182 182 183 183 Implement the above functions using container_of::