Skip to content
Unverified Commit 027781f3 authored by Leonard Göhrs's avatar Leonard Göhrs Committed by Mark Brown
Browse files

spi: core: add spi_split_transfers_maxwords



Add spi_split_transfers_maxwords() function that splits
spi_transfers transparently into multiple transfers
that are below a given number of SPI words.

This function reuses most of its code from
spi_split_transfers_maxsize() and for transfers with
eight or less bits per word actually behaves the same.

Signed-off-by: default avatarLeonard Göhrs <l.goehrs@pengutronix.de>
Link: https://lore.kernel.org/r/20230310092053.1006459-1-l.goehrs@pengutronix.de
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 93d20545
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