doc: bindings: improve gpio_dt_spec doc

Use _dt methods for everything.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2022-03-07 06:52:10 -08:00 committed by Anas Nashif
commit c050d1f2ec

View file

@ -1143,7 +1143,7 @@ gpio_dt_spec``, then use it like this:
gpio_pin_configure_dt(&signal, GPIO_OUTPUT_INACTIVE);
/* Set the pin to its active level */
gpio_pin_set(signal.port, signal.pin, 1);
gpio_pin_set_dt(&signal, 1);
(See :c:struct:`gpio_dt_spec`, :c:macro:`GPIO_DT_SPEC_GET`, and
:c:func:`gpio_pin_configure_dt` for details on these APIs.)