Skip to content

Add wrapper DEVICE_API macro to all Bridle owned driver API instances#470

Merged
rexut merged 8 commits into
mainfrom
next
Jun 26, 2026
Merged

Add wrapper DEVICE_API macro to all Bridle owned driver API instances#470
rexut merged 8 commits into
mainfrom
next

Conversation

@rexut

@rexut rexut commented Jun 17, 2026

Copy link
Copy Markdown
Member

Fixes #469.

The DEVICE_API macro is now mandatory for declaring device driver API instances of any upstream driver class, including in out-of-tree drivers. DEVICE_API_GET now asserts that the API belongs to the requested class, which requires the instance to live in the class’s iterable section.

Result in QA Integration Test from upstream is now:

INFO   - Using Ninja..
INFO   - Zephyr version: 68918c04ddaa
INFO   - Using 'zephyr/gnu' toolchain variant.
INFO   - Using alternative configuration from … … …
… … …
INFO   - Selecting default platforms per testsuite scenario
INFO   - Building initial testsuite list...
INFO   - Built testsuite list in 18.17 seconds
INFO   - Writing JSON report twister-out/testplan.json
INFO   - JOBS: 6
INFO   - Adding tasks to the queue...
INFO   - Added initial list of jobs to queue
… … …
INFO   - 28/70 native_sim/native/64   drivers.i2c.sc18is604    PASSED (native 0.033s <host/gnu>)
INFO   - 29/70 native_sim/native      drivers.i2c.sc18is604    PASSED (native 0.035s <host/gnu>)
… … …
INFO   - 33/70 native_sim/native/64   drivers.gpio.sc18is604   PASSED (native 0.028s <host/gnu>)
INFO   - 34/70 native_sim/native      drivers.gpio.sc18is604   PASSED (native 0.016s <host/gnu>)
… … …

Also this repairing the QA Integration Tests because of unrecognized platform error: the board bl54l15u_dvk was removed upstream.

rexut added 6 commits June 17, 2026 11:03
Add wrapper DEVICE_API macro to all display_driver_api instances.

Signed-off-by: Stephan Linz <linz@li-pro.net>
Add wrapper DEVICE_API macro to all gpio_driver_api instances.

Signed-off-by: Stephan Linz <linz@li-pro.net>
Add wrapper DEVICE_API macro to all i2c_driver_api instances.

Signed-off-by: Stephan Linz <linz@li-pro.net>
Add wrapper DEVICE_API macro to all uart_driver_api instances.

Signed-off-by: Stephan Linz <linz@li-pro.net>
Rename all SC18IM604 to correct SC18IS604.

Signed-off-by: Stephan Linz <linz@li-pro.net>
Add GitHub issues #469.

Signed-off-by: Stephan Linz <linz@li-pro.net>
@github-actions

Copy link
Copy Markdown

You can find the documentation preview for this PR at this link. It will be updated about 10 minutes after the documentation build succeeds.

Note: This comment is automatically posted by the Documentation Publishing GitHub Action.

rexut added 2 commits June 18, 2026 09:33
This board was redundant and removed upstream. bl54l15_dvk is equivalent.

Signed-off-by: Stephan Linz <linz@li-pro.net>
Take over new boards with sysbuild enabled from upcoming Zephyr v4.5.

Signed-off-by: Stephan Linz <linz@li-pro.net>
@rexut
rexut merged commit 7ff12c5 into main Jun 26, 2026
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Declaring device driver API instances have to use the DEVICE_API macro

2 participants