Skip to content
Commit 766bfe7b authored by Gerard Marull-Paretas's avatar Gerard Marull-Paretas Committed by Henrik Brix Andersen
Browse files

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: default avatarGerard Marull-Paretas <gerard.marull@nordicsemi.no>
parent f44a3010
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment