Commit 6d6af579 authored by Vladimir Oltean's avatar Vladimir Oltean Committed by Mark Brown

spi: spi-fsl-dspi: Remove unused chip->void_write_data

This variable has been present since the initial submission of the
driver, and held, for some reason, the value of zero, to be sent on the
wire in the case there wasn't any TX buffer for the current transfer.

Since quite a while now, however, it isn't doing anything at all.
Signed-off-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20200304220044.11193-3-olteanv@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 53fadb4d
...@@ -110,7 +110,6 @@ ...@@ -110,7 +110,6 @@
struct chip_data { struct chip_data {
u32 ctar_val; u32 ctar_val;
u16 void_write_data;
}; };
enum dspi_trans_mode { enum dspi_trans_mode {
...@@ -235,7 +234,6 @@ struct fsl_dspi { ...@@ -235,7 +234,6 @@ struct fsl_dspi {
const void *tx; const void *tx;
void *rx; void *rx;
void *rx_end; void *rx_end;
u16 void_write_data;
u16 tx_cmd; u16 tx_cmd;
u8 bits_per_word; u8 bits_per_word;
u8 bytes_per_word; u8 bytes_per_word;
...@@ -795,8 +793,6 @@ static int dspi_transfer_one_message(struct spi_controller *ctlr, ...@@ -795,8 +793,6 @@ static int dspi_transfer_one_message(struct spi_controller *ctlr,
dspi->tx_cmd |= SPI_PUSHR_CMD_CONT; dspi->tx_cmd |= SPI_PUSHR_CMD_CONT;
} }
dspi->void_write_data = dspi->cur_chip->void_write_data;
dspi->tx = transfer->tx_buf; dspi->tx = transfer->tx_buf;
dspi->rx = transfer->rx_buf; dspi->rx = transfer->rx_buf;
dspi->rx_end = dspi->rx + transfer->len; dspi->rx_end = dspi->rx + transfer->len;
...@@ -897,8 +893,6 @@ static int dspi_setup(struct spi_device *spi) ...@@ -897,8 +893,6 @@ static int dspi_setup(struct spi_device *spi)
sck_cs_delay = pdata->sck_cs_delay; sck_cs_delay = pdata->sck_cs_delay;
} }
chip->void_write_data = 0;
clkrate = clk_get_rate(dspi->clk); clkrate = clk_get_rate(dspi->clk);
hz_to_spi_baud(&pbr, &br, spi->max_speed_hz, clkrate); hz_to_spi_baud(&pbr, &br, spi->max_speed_hz, clkrate);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment