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:
parent
77ae58ee72
commit
536fe6a948
2 changed files with 8 additions and 3 deletions
|
@ -43,6 +43,11 @@ Deprecated in this release
|
||||||
* The TinyCBOR module has been deprecated in favor of the new zcbor CBOR
|
* The TinyCBOR module has been deprecated in favor of the new zcbor CBOR
|
||||||
library, included with Zephyr in this release.
|
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
|
Stable API changes in this release
|
||||||
==================================
|
==================================
|
||||||
|
|
||||||
|
|
|
@ -152,9 +152,9 @@ struct spi_cs_control {
|
||||||
union {
|
union {
|
||||||
struct gpio_dt_spec gpio;
|
struct gpio_dt_spec gpio;
|
||||||
struct {
|
struct {
|
||||||
const struct device *gpio_dev;
|
const struct device *gpio_dev __deprecated;
|
||||||
gpio_pin_t gpio_pin;
|
gpio_pin_t gpio_pin __deprecated;
|
||||||
gpio_dt_flags_t gpio_dt_flags;
|
gpio_dt_flags_t gpio_dt_flags __deprecated;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue