Skip to content

Documentation still mentions deprecated macro DT_INST_FOREACH_STATUS_OKAY #34969

@johnkjellberg

Description

@johnkjellberg

Describe the bug
DT_INST_FOREACH_STATUS_OKAY gives a deprecated compiler warning but the guide guides/dts/howtos still mention that it should be used.

To Reproduce
Steps to reproduce the behavior:

  1. Use DT_INST_FOREACH_STATUS_OKAY in code.
  2. compile

Expected behavior
The documentation should mention what to use instead of the deprecated macro.

Impact
Confusion on what is the correct way for the future.

Logs and console output

../src/tmc7300.c:315:13: warning: Macro is deprecated
  315 | DT_INST_FOREACH_STATUS_OKAY(CREATE_TMC7300_DEVICE)

Environment (please complete the following information):

Metadata

Metadata

Labels

area: DevicetreebugThe issue is a bug, or the PR is fixing a bug

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions