1 /* 2 * Copyright (c) 2022 Intel Corporation 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 /** 8 * @file 9 * @brief Async callback used with signal notifier 10 */ 11 12 #include <zephyr/kernel.h> 13 #include <zephyr/device.h> 14 15 #ifdef CONFIG_POLL 16 z_spi_transfer_signal_cb(const struct device * dev,int result,void * userdata)17void z_spi_transfer_signal_cb(const struct device *dev, 18 int result, 19 void *userdata) 20 { 21 ARG_UNUSED(dev); 22 23 struct k_poll_signal *sig = userdata; 24 25 k_poll_signal_raise(sig, result); 26 } 27 28 #endif /* CONFIG_POLL */ 29