Commit dac81a20 authored by Gerard Marull-Paretas's avatar Gerard Marull-Paretas Committed by Fabio Baltieri
Browse files

device: device handles should not be related with SYS_INIT

Device handles are only meant to identify a device, nothing else.
Reserve negative values for any potential future use, though.

Signed-off-by: default avatarGerard Marull-Paretas <gerard@teslabs.com>
parent 634416bc
Loading
Loading
Loading
Loading
+1 −3
Changes for include/zephyr/device.h: 1 added line, 3 removed lines.
Original line number Diff line number Diff line
@@ -51,9 +51,7 @@ extern "C" {
 * than a pointer. The device.h API mainly uses handles to store lists of
 * multiple devices in a compact way.
 *
 * The extreme values and zero have special significance. Negative values
 * identify functionality that does not correspond to a Zephyr device, such as
 * the system clock or a SYS_INIT() function.
 * The negative, extreme values and zero have special significance.
 *
 * @see device_handle_get()
 * @see device_from_handle()