drivers: spi: deprecate `spi_is_ready` function
Make `spi_is_ready` function deprecated in favor of `spi_is_ready_dt`.
Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
diff --git a/doc/releases/release-notes-3.3.rst b/doc/releases/release-notes-3.3.rst
index 4df9fad..55f6f68 100644
--- a/doc/releases/release-notes-3.3.rst
+++ b/doc/releases/release-notes-3.3.rst
@@ -131,6 +131,8 @@
* PCIe APIs :c:func:`pcie_probe` and :c:func:`pcie_bdf_lookup` have been
deprecated in favor of a centralized scan of available PCIe devices.
+* SPI DT :c:func:`spi_is_ready` function has been deprecated in favor of :c:func:`spi_is_ready_dt`.
+
Stable API changes in this release
==================================
diff --git a/include/zephyr/drivers/spi.h b/include/zephyr/drivers/spi.h
index d108ae5..6e44d04 100644
--- a/include/zephyr/drivers/spi.h
+++ b/include/zephyr/drivers/spi.h
@@ -392,6 +392,7 @@
* Important: multiple fields are automatically constructed by this macro
* which must be checked before use. @ref spi_is_ready performs the required
* @ref device_is_ready checks.
+ * @deprecated Use @ref spi_is_ready_dt instead.
*
* This macro is not available in C++.
*
@@ -508,6 +509,7 @@
* @retval true if the SPI bus is ready for use.
* @retval false if the SPI bus is not ready for use.
*/
+__deprecated
static inline bool spi_is_ready(const struct spi_dt_spec *spec)
{
/* Validate bus is ready */