commit | 766bfe7b2e28fe07c049e7ab6de6aa993c396142 | [log] [tgz] |
---|---|---|
author | Gerard Marull-Paretas <gerard.marull@nordicsemi.no> | Mon Jan 13 10:32:04 2025 +0100 |
committer | Henrik Brix Andersen <henrik@brixandersen.dk> | Mon Mar 10 21:32:40 2025 +0100 |
tree | c4c6ec32d03de53b3f73dcbd2cf4763a950cecce | |
parent | f44a30109cfb3eab5992b09f34bc61d2ccc047b1 [diff] |
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>