drivers: spi_handlers: switch to gpio_dt_spec member

Don't use the old gpio_dev spi_cs_control's member
since it's been deprecated in favor of gpio_dt_spec.

Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
This commit is contained in:
Bartosz Bilas 2021-12-20 20:22:59 +01:00 committed by Maureen Helm
parent 823b468890
commit 1d40d4fa5a

View file

@ -108,8 +108,8 @@ static inline int z_vrfy_spi_transceive(const struct device *dev,
const struct spi_cs_control *cs = config_copy.cs;
Z_OOPS(Z_SYSCALL_MEMORY_READ(cs, sizeof(*cs)));
if (cs->gpio_dev) {
Z_OOPS(Z_SYSCALL_OBJ(cs->gpio_dev, K_OBJ_DRIVER_GPIO));
if (cs->gpio.port) {
Z_OOPS(Z_SYSCALL_OBJ(cs->gpio.port, K_OBJ_DRIVER_GPIO));
}
}