Skip to content

Commit de2d20f

Browse files
decsnykartben
authored andcommitted
spi_nxp_lpspi: Remove unused struct fields
These two fields were not being used and were a relic of some intermediate implementation, and forgot to be removed. Signed-off-by: Declan Snyder <[email protected]>
1 parent a718b84 commit de2d20f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/spi/spi_nxp_lpspi/spi_nxp_lpspi.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ LOG_MODULE_REGISTER(spi_mcux_lpspi, CONFIG_SPI_LOG_LEVEL);
1313

1414
struct lpspi_driver_data {
1515
size_t fill_len;
16-
size_t tx_total_len;
17-
size_t rx_total_len;
1816
uint8_t word_size_bytes;
1917
};
2018

@@ -253,9 +251,6 @@ static int transceive(const struct device *dev, const struct spi_config *spi_cfg
253251

254252
spi_context_buffers_setup(&data->ctx, tx_bufs, rx_bufs, lpspi_data->word_size_bytes);
255253

256-
lpspi_data->tx_total_len = spi_context_total_tx_len(&data->ctx);
257-
lpspi_data->rx_total_len = spi_context_total_rx_len(&data->ctx);
258-
259254
ret = spi_mcux_configure(dev, spi_cfg);
260255
if (ret) {
261256
return ret;

0 commit comments

Comments
 (0)