regmap: spi: Set regmap max raw r/w from max_transfer_size
authorLucas Tanure <tanureal@opensource.cirrus.com>
Thu, 21 Oct 2021 13:27:21 +0000 (10:27 -0300)
committerMark Brown <broonie@kernel.org>
Sat, 23 Oct 2021 18:55:03 +0000 (19:55 +0100)
commitf231ff38b7b23197013b437128d196710fe282da
treeadc6fc13a4204ea947f3c9df2c0b894d1ebfea72
parent6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f
regmap: spi: Set regmap max raw r/w from max_transfer_size

Set regmap raw read/write from spi max_transfer_size
so regmap_raw_read/write can split the access into chunks

Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
[AndrĂ©: fix build warning]
Signed-off-by: André Almeida <andrealmeid@collabora.com>
Link: https://lore.kernel.org/r/20211021132721.13669-1-andrealmeid@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-spi.c