drivers: spi: mark old spi_cs_control fields deprecated

Since gpio_dt_spec is finally available within spi_cs_control
struct, mark the old fields deprecated in order to use
gpio_dt_spec struct.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
Co-authored-by: Jordan Yates <jordan.yates@data61.csiro.au>
Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
Co-authored-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
This commit is contained in:
Bartosz Bilas 2021-08-01 15:41:49 +10:00 committed by Carles Cufí
commit 536fe6a948
2 changed files with 8 additions and 3 deletions

View file

@ -43,6 +43,11 @@ Deprecated in this release
* The TinyCBOR module has been deprecated in favor of the new zcbor CBOR
library, included with Zephyr in this release.
* SPI
* Deprecated the `gpio_dev`, `gpio_pin` and `gpio_dt_flags` members from
spi_cs_control struct in favor of `gpio_dt_spec` gpio.
Stable API changes in this release
==================================

View file

@ -152,9 +152,9 @@ struct spi_cs_control {
union {
struct gpio_dt_spec gpio;
struct {
const struct device *gpio_dev;
gpio_pin_t gpio_pin;
gpio_dt_flags_t gpio_dt_flags;
const struct device *gpio_dev __deprecated;
gpio_pin_t gpio_pin __deprecated;
gpio_dt_flags_t gpio_dt_flags __deprecated;
};
};
/**