From d5af2f7dde94b21d594f11e005d2f92f8b120c6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Wed, 18 Jun 2025 14:22:31 +0200 Subject: [PATCH] drivers: sensors: fxls8974: fix compilation error in fxls8974_transceive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SPI code wasn't tested in CI so this compilation error was missed. Signed-off-by: Benjamin Cabé --- drivers/sensor/nxp/fxls8974/fxls8974.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/sensor/nxp/fxls8974/fxls8974.c b/drivers/sensor/nxp/fxls8974/fxls8974.c index bb9f6d43ec4..2c8ec804276 100644 --- a/drivers/sensor/nxp/fxls8974/fxls8974.c +++ b/drivers/sensor/nxp/fxls8974/fxls8974.c @@ -25,7 +25,7 @@ int fxls8974_transceive(const struct device *dev, { const struct fxls8974_config *cfg = dev->config; const struct spi_buf buf = { .buf = data, .len = length }; - const struct spi_buf_set s = { .bufs = &buf, .count = 1 }; + const struct spi_buf_set s = { .buffers = &buf, .count = 1 }; return spi_transceive_dt(&cfg->bus_cfg.spi, &s, &s); } @@ -43,8 +43,8 @@ int fxls8974_read_spi(const struct device *dev, { .buf = reg_buf, .len = 3 }, { .buf = data, .len = length } }; - const struct spi_buf_set tx = { .bufs = buf, .count = 1 }; - const struct spi_buf_set rx = { .bufs = buf, .count = 2 }; + const struct spi_buf_set tx = { .buffers = buf, .count = 1 }; + const struct spi_buf_set rx = { .buffers = buf, .count = 2 }; return spi_transceive_dt(&cfg->bus_cfg.spi, &tx, &rx); }