spi: spi-qpic-snand: remove 'qpic_snand_op' structure
authorGabor Juhos <j4g8y7@gmail.com>
Thu, 29 May 2025 17:35:44 +0000 (19:35 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 8 Jun 2025 22:38:43 +0000 (23:38 +0100)
commitf73dc37ebf45573349aee0aae168e8dc3d13ecee
treec13d45df1a8867892132720ac49316a9939cb92a
parent6c1ca9928ed48499f75101057079b92072077d44
spi: spi-qpic-snand: remove 'qpic_snand_op' structure

The 'qpic_snand_op' structure is used only in the qcom_spi_send_cmdaddr()
function as a type of a local variable. Additionally, the sole purpose of
that variable is to keep some interim values before those gets passed as
arguments for cpu_to_le32() calls.

In order to simplify the code, remove the definition of the structure
along with the local variable, and use the corresponding values directly
as parameters for cpu_to_le32() calls.

No functional changes intended.

Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
Link: https://patch.msgid.link/20250529-qpic-snand-remove-qpic_snand_op-v1-1-6e42b772d748@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-qpic-snand.c