Commit 69d54ee2 authored by David Lechner's avatar David Lechner Committed by Mark Brown

spi: axi-spi-engine: remove p from struct spi_engine_message_state

The program pointer p in struct spi_engine_message_state in the AXI SPI
Engine controller driver was assigned but never read so it can be
removed.
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarDavid Lechner <dlechner@baylibre.com>
Reviewed-by: default avatarGustavo A. R. Silva <gustavoars@kernel.org>
Link: https://msgid.link/r/20240304-mainline-axi-spi-engine-small-cleanups-v2-1-5b14ed729a31@baylibre.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent bc9c0a99
...@@ -82,8 +82,6 @@ struct spi_engine_program { ...@@ -82,8 +82,6 @@ struct spi_engine_program {
* struct spi_engine_message_state - SPI engine per-message state * struct spi_engine_message_state - SPI engine per-message state
*/ */
struct spi_engine_message_state { struct spi_engine_message_state {
/** @p: Instructions for executing this message. */
struct spi_engine_program *p;
/** @cmd_length: Number of elements in cmd_buf array. */ /** @cmd_length: Number of elements in cmd_buf array. */
unsigned cmd_length; unsigned cmd_length;
/** @cmd_buf: Array of commands not yet written to CMD FIFO. */ /** @cmd_buf: Array of commands not yet written to CMD FIFO. */
...@@ -543,7 +541,6 @@ static int spi_engine_transfer_one_message(struct spi_controller *host, ...@@ -543,7 +541,6 @@ static int spi_engine_transfer_one_message(struct spi_controller *host,
/* reinitialize message state for this transfer */ /* reinitialize message state for this transfer */
memset(st, 0, sizeof(*st)); memset(st, 0, sizeof(*st));
st->p = p;
st->cmd_buf = p->instructions; st->cmd_buf = p->instructions;
st->cmd_length = p->length; st->cmd_length = p->length;
msg->state = st; msg->state = st;
......
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