Z_SYSCALL_HANDLER(spi_release, dev, config_p) { const struct spi_config *config = (const struct spi_config *)config_p; Z_OOPS(Z_SYSCALL_MEMORY_READ(config, sizeof(*config))); Z_OOPS(Z_SYSCALL_DRIVER_SPI(dev, release)); return _impl_spi_release((struct device *)dev, config); }
_SYSCALL_HANDLER(spi_release, config_p) { struct spi_config *config = (struct spi_config *)config_p; _SYSCALL_MEMORY_READ(config, sizeof(*config)); _SYSCALL_OBJ(config->dev, K_OBJ_DRIVER_SPI); return _impl_spi_release(config); }