File tree Expand file tree Collapse file tree 2 files changed +5
-25
lines changed Expand file tree Collapse file tree 2 files changed +5
-25
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,10 @@ Deprecated in this release
60
60
Application developer will now need to set the advertised name themselves by updating the advertising data
61
61
or the scan response data.
62
62
63
+ * SPI
64
+
65
+ * Deprecated :c:func: `spi_is_ready ` API function has been removed.
66
+
63
67
Architectures
64
68
*************
65
69
Original file line number Diff line number Diff line change @@ -389,9 +389,8 @@ struct spi_dt_spec {
389
389
* data from the devicetree.
390
390
*
391
391
* Important: multiple fields are automatically constructed by this macro
392
- * which must be checked before use. @ref spi_is_ready performs the required
392
+ * which must be checked before use. @ref spi_is_ready_dt performs the required
393
393
* @ref device_is_ready checks.
394
- * @deprecated Use @ref spi_is_ready_dt instead.
395
394
*
396
395
* @param node_id Devicetree node identifier for the SPI device whose
397
396
* struct spi_dt_spec to create an initializer for
@@ -683,29 +682,6 @@ static inline bool spi_cs_is_gpio_dt(const struct spi_dt_spec *spec)
683
682
return spi_cs_is_gpio (& spec -> config );
684
683
}
685
684
686
- /**
687
- * @brief Validate that SPI bus is ready.
688
- *
689
- * @param spec SPI specification from devicetree
690
- *
691
- * @retval true if the SPI bus is ready for use.
692
- * @retval false if the SPI bus is not ready for use.
693
- */
694
- __deprecated
695
- static inline bool spi_is_ready (const struct spi_dt_spec * spec )
696
- {
697
- /* Validate bus is ready */
698
- if (!device_is_ready (spec -> bus )) {
699
- return false;
700
- }
701
- /* Validate CS gpio port is ready, if it is used */
702
- if (spi_cs_is_gpio_dt (spec ) &&
703
- !gpio_is_ready_dt (& spec -> config .cs .gpio )) {
704
- return false;
705
- }
706
- return true;
707
- }
708
-
709
685
/**
710
686
* @brief Validate that SPI bus (and CS gpio if defined) is ready.
711
687
*
You can’t perform that action at this time.
0 commit comments