Skip to content

Commit

Permalink
[nrf fromtree] drivers: spi: fix sample syntax
Browse files Browse the repository at this point in the history
Upcoming versions of breathe highlight code embedded in Doxygen blocks.
In this case, the Devicetree fragment contained invalid syntax leading
to Sphinx warnings.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
  • Loading branch information
gmarull authored and rlubos committed Sep 14, 2022
1 parent 587a483 commit 8689324
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/zephyr/drivers/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ struct spi_cs_control {
* Example devicetree fragment:
*
* @code{.devicetree}
* gpio1: gpio@... { ... };
* gpio1: gpio@abcd0001 { ... };
*
* gpio2: gpio@... { ... };
* gpio2: gpio@abcd0002 { ... };
*
* spi@... {
* spi@abcd0003 {
* compatible = "vnd,spi";
* cs-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>,
* <&gpio2 20 GPIO_ACTIVE_LOW>;
Expand Down

0 comments on commit 8689324

Please sign in to comment.