Skip to content

Commit c77f8fa

Browse files
erwangogalak
authored andcommitted
doc/guides/dts: bindings: Fix code snippet for 'signal-gpios'
Code snippet to demonstrate use of 'zephyr,user' binding for gpio pin was missing a #define to easily get the code compiling. Fix this. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent 3ec1caa commit c77f8fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/guides/dts/bindings.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,8 @@ gpio_dt_spec``, then use it like this:
10131013
10141014
#include <drivers/gpio.h>
10151015
1016+
#define ZEPHYR_USER_NODE DT_PATH(zephyr_user)
1017+
10161018
const struct gpio_dt_spec signal =
10171019
GPIO_DT_SPEC_GET(ZEPHYR_USER_NODE, signal_gpios);
10181020

0 commit comments

Comments
 (0)