arm/nrf52,nrf53,nrf91: fix SPI sndblock ops field

The non-exchange ops table initialized .sndlock, which does not exist
in struct spi_ops_s and fails to compile without CONFIG_SPI_EXCHANGE.

Assisted-by: Claude Code
Signed-off-by: raiden00pl <raiden00@railab.me>
This commit is contained in:
raiden00pl 2026-09-24 15:32:29 +02:00 • committed by Xiang Xiao
parent e5e06d6bde
commit 574bbf618f
3 changed files with 7 additions and 7 deletions

View file

@ -290,7 +290,7 @@ static const struct spi_ops_s g_spi2ops =
# ifdef CONFIG_SPI_EXCHANGE
.exchange = nrf52_spi_exchange,
# else
.sndlock = nrf52_spi_sndblock,
.sndblock = nrf52_spi_sndblock,
.recvblock = nrf52_spi_recvblock,
# endif
#ifdef CONFIG_SPI_TRIGGER
@ -343,7 +343,7 @@ static const struct spi_ops_s g_spi3ops =
# ifdef CONFIG_SPI_EXCHANGE
.exchange = nrf52_spi_exchange,
# else
.sndlock = nrf52_spi_sndblock,
.sndblock = nrf52_spi_sndblock,
.recvblock = nrf52_spi_recvblock,
# endif
#ifdef CONFIG_SPI_TRIGGER

View file

@ -265,7 +265,7 @@ static const struct spi_ops_s g_spi2ops =
# ifdef CONFIG_SPI_EXCHANGE
.exchange = nrf53_spi_exchange,
# else
.sndlock = nrf53_spi_sndblock,
.sndblock = nrf53_spi_sndblock,
.recvblock = nrf53_spi_recvblock,
# endif
#ifdef CONFIG_SPI_TRIGGER
@ -318,7 +318,7 @@ static const struct spi_ops_s g_spi3ops =
# ifdef CONFIG_SPI_EXCHANGE
.exchange = nrf53_spi_exchange,
# else
.sndlock = nrf53_spi_sndblock,
.sndblock = nrf53_spi_sndblock,
.recvblock = nrf53_spi_recvblock,
# endif
#ifdef CONFIG_SPI_TRIGGER
@ -371,7 +371,7 @@ static const struct spi_ops_s g_spi4ops =
# ifdef CONFIG_SPI_EXCHANGE
.exchange = nrf53_spi_exchange,
# else
.sndlock = nrf53_spi_sndblock,
.sndblock = nrf53_spi_sndblock,
.recvblock = nrf53_spi_recvblock,
# endif
#ifdef CONFIG_SPI_TRIGGER

View file

@ -265,7 +265,7 @@ static const struct spi_ops_s g_spi2ops =
# ifdef CONFIG_SPI_EXCHANGE
.exchange = nrf91_spi_exchange,
# else
.sndlock = nrf91_spi_sndblock,
.sndblock = nrf91_spi_sndblock,
.recvblock = nrf91_spi_recvblock,
# endif
#ifdef CONFIG_SPI_TRIGGER
@ -318,7 +318,7 @@ static const struct spi_ops_s g_spi3ops =
# ifdef CONFIG_SPI_EXCHANGE
.exchange = nrf91_spi_exchange,
# else
.sndlock = nrf91_spi_sndblock,
.sndblock = nrf91_spi_sndblock,
.recvblock = nrf91_spi_recvblock,
# endif
#ifdef CONFIG_SPI_TRIGGER