Skip to content

Commit d5af2f7

Browse files
kartbencarlescufi
authored andcommitted
drivers: sensors: fxls8974: fix compilation error in fxls8974_transceive
SPI code wasn't tested in CI so this compilation error was missed. Signed-off-by: Benjamin Cabé <[email protected]>
1 parent c8ef91f commit d5af2f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/sensor/nxp/fxls8974/fxls8974.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ int fxls8974_transceive(const struct device *dev,
2525
{
2626
const struct fxls8974_config *cfg = dev->config;
2727
const struct spi_buf buf = { .buf = data, .len = length };
28-
const struct spi_buf_set s = { .bufs = &buf, .count = 1 };
28+
const struct spi_buf_set s = { .buffers = &buf, .count = 1 };
2929

3030
return spi_transceive_dt(&cfg->bus_cfg.spi, &s, &s);
3131
}
@@ -43,8 +43,8 @@ int fxls8974_read_spi(const struct device *dev,
4343
{ .buf = reg_buf, .len = 3 },
4444
{ .buf = data, .len = length }
4545
};
46-
const struct spi_buf_set tx = { .bufs = buf, .count = 1 };
47-
const struct spi_buf_set rx = { .bufs = buf, .count = 2 };
46+
const struct spi_buf_set tx = { .buffers = buf, .count = 1 };
47+
const struct spi_buf_set rx = { .buffers = buf, .count = 2 };
4848

4949
return spi_transceive_dt(&cfg->bus_cfg.spi, &tx, &rx);
5050
}

0 commit comments

Comments
 (0)