spi: intel: Implement adjust_op_size()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 25 Oct 2022 06:46:21 +0000 (09:46 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 25 Nov 2022 19:34:04 +0000 (19:34 +0000)
commit8a9a784fb337cfd07f305faf5358335d4c12a788
tree5e727c116d30dccbe3104d74129498e247966b11
parentf73f6bd200c399d52d7147f66b956a01c93d7606
spi: intel: Implement adjust_op_size()

This allows us to get rid of the checks in the intel_spi_[sh]w_cycle()
and makes it possible for the SPI-NOR core to split the transaction into
smaller chunks as needed.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://lore.kernel.org/r/20221025064623.22808-3-mika.westerberg@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-intel.c