foldedtoad / dwm3000

Port of Qorvo/Decawave's DWM3000 Module on the DWS3000 Arduino Shield
GNU General Public License v3.0
83 stars 16 forks source link

spi: use gpio_dt_spec in struct spi_cs_control #15

Closed mfikes closed 1 year ago

mfikes commented 1 year ago

Update to use the new gpio_dt_spec in struct spi_cs_control.

See https://github.com/zephyrproject-rtos/zephyr/commit/89d76e9bbe60232e68fae039f3a21c8422ca9810 which landed in Zephyr 3.0.0. The old fields were subsequently deprecated in Zephyr 3.1.0 (https://github.com/zephyrproject-rtos/zephyr/commit/536fe6a948c9a546bb89dc73ab4adbd3b13b3e71) and then removed in Zephyr 3.2.0 ( https://github.com/zephyrproject-rtos/zephyr/commit/7b6c1b158b6a8e87b0dfcd7d173dcb006f082faf), so this PR, while compatible with 3.0.0, sets things up for later versions of Zephyr.