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>alistair/sunxi64-5.4-dsi
parent
b1663d7e3a
commit
889aa9ca93
|
@ -175,9 +175,9 @@ the following::
|
||||||
To take advantage of your data you'll need to support valid operations
|
To take advantage of your data you'll need to support valid operations
|
||||||
for your clk::
|
for your clk::
|
||||||
|
|
||||||
struct clk_ops clk_foo_ops {
|
struct clk_ops clk_foo_ops = {
|
||||||
.enable = &clk_foo_enable;
|
.enable = &clk_foo_enable,
|
||||||
.disable = &clk_foo_disable;
|
.disable = &clk_foo_disable,
|
||||||
};
|
};
|
||||||
|
|
||||||
Implement the above functions using container_of::
|
Implement the above functions using container_of::
|
||||||
|
|
Loading…
Reference in New Issue