Skip to content

Commit

Permalink
drivers: spi: remove deprecated functions
Browse files Browse the repository at this point in the history
`spi_transceive_async`, `spi_read_async` and `spi_write_async`
are deprecated since v3.2.

Signed-off-by: Bartosz Bilas <[email protected]>
  • Loading branch information
bbilas committed Jun 4, 2024
1 parent 61536c1 commit 5188480
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 40 deletions.
3 changes: 3 additions & 0 deletions doc/releases/release-notes-3.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ Deprecated in this release
* SPI

* Deprecated :c:func:`spi_is_ready` API function has been removed.
* Deprecated :c:func:`spi_transceive_async` API function has been removed.
* Deprecated :c:func:`spi_read_async` API function has been removed.
* Deprecated :c:func:`spi_write_async` API function has been removed.

Architectures
*************
Expand Down
40 changes: 0 additions & 40 deletions include/zephyr/drivers/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -932,20 +932,6 @@ static inline int spi_transceive_signal(const struct device *dev,
return api->transceive_async(dev, config, tx_bufs, rx_bufs, cb, sig);
}

/**
* @brief Alias for spi_transceive_signal for backwards compatibility
*
* @deprecated Use @ref spi_transceive_signal instead.
*/
__deprecated static inline int spi_transceive_async(const struct device *dev,
const struct spi_config *config,
const struct spi_buf_set *tx_bufs,
const struct spi_buf_set *rx_bufs,
struct k_poll_signal *sig)
{
return spi_transceive_signal(dev, config, tx_bufs, rx_bufs, sig);
}

/**
* @brief Read the specified amount of data from the SPI driver.
*
Expand Down Expand Up @@ -978,19 +964,6 @@ static inline int spi_read_signal(const struct device *dev,
return spi_transceive_signal(dev, config, NULL, rx_bufs, sig);
}

/**
* @brief Alias for spi_read_signal for backwards compatibility
*
* @deprecated Use @ref spi_read_signal instead.
*/
__deprecated static inline int spi_read_async(const struct device *dev,
const struct spi_config *config,
const struct spi_buf_set *rx_bufs,
struct k_poll_signal *sig)
{
return spi_read_signal(dev, config, rx_bufs, sig);
}

/**
* @brief Write the specified amount of data from the SPI driver.
*
Expand Down Expand Up @@ -1022,19 +995,6 @@ static inline int spi_write_signal(const struct device *dev,
return spi_transceive_signal(dev, config, tx_bufs, NULL, sig);
}

/**
* @brief Alias for spi_write_signal for backwards compatibility
*
* @deprecated Use @ref spi_write_signal instead.
*/
__deprecated static inline int spi_write_async(const struct device *dev,
const struct spi_config *config,
const struct spi_buf_set *tx_bufs,
struct k_poll_signal *sig)
{
return spi_write_signal(dev, config, tx_bufs, sig);
}

#endif /* CONFIG_POLL */

#endif /* CONFIG_SPI_ASYNC */
Expand Down

0 comments on commit 5188480

Please sign in to comment.