zephyr::raw

Function device_init

Source
pub unsafe extern "C" fn device_init(dev: *const device) -> i32
Expand description

@brief Initialize a device.

A device whose initialization was deferred (by marking it as zephyr,deferred-init on devicetree) needs to be initialized manually via this call. De-initialized devices can also be initialized again via this call.

@param dev device to be initialized.

@retval -EALREADY Device is already initialized. @retval -errno For other errors.