Skip to content

Commit 1d40d4f

Browse files
bbilasMaureenHelm
authored andcommitted
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 <[email protected]>
1 parent 823b468 commit 1d40d4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi_handlers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ static inline int z_vrfy_spi_transceive(const struct device *dev,
108108
const struct spi_cs_control *cs = config_copy.cs;
109109

110110
Z_OOPS(Z_SYSCALL_MEMORY_READ(cs, sizeof(*cs)));
111-
if (cs->gpio_dev) {
112-
Z_OOPS(Z_SYSCALL_OBJ(cs->gpio_dev, K_OBJ_DRIVER_GPIO));
111+
if (cs->gpio.port) {
112+
Z_OOPS(Z_SYSCALL_OBJ(cs->gpio.port, K_OBJ_DRIVER_GPIO));
113113
}
114114
}
115115

0 commit comments

Comments
 (0)