zephyr/tests/lib/devicetree/devices/src
Gerard Marull-Paretas 766bfe7b2e device: introduce struct device_ops
Instead of passing a single init function, create
struct device_ops with the init function inside. This allows to easily
extend device's capabilities in the future without too much breakage,
e.g. to add a de-init call.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2025-03-10 21:32:40 +01:00
..
main.c device: introduce struct device_ops 2025-03-10 21:32:40 +01:00