File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
drivers/sensor/nxp/fxls8974 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ int fxls8974_transceive(const struct device *dev,
25
25
{
26
26
const struct fxls8974_config * cfg = dev -> config ;
27
27
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 };
29
29
30
30
return spi_transceive_dt (& cfg -> bus_cfg .spi , & s , & s );
31
31
}
@@ -43,8 +43,8 @@ int fxls8974_read_spi(const struct device *dev,
43
43
{ .buf = reg_buf , .len = 3 },
44
44
{ .buf = data , .len = length }
45
45
};
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 };
48
48
49
49
return spi_transceive_dt (& cfg -> bus_cfg .spi , & tx , & rx );
50
50
}
You can’t perform that action at this time.
0 commit comments