regmap: Move the handling for max_raw_write into regmap_raw_write
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 22 Feb 2018 12:59:12 +0000 (12:59 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 26 Feb 2018 11:00:32 +0000 (11:00 +0000)
commit7ef2c6b8689a084954cffbd102ee49c2fb72cbd4
treee1dcaa8f9884d94bb7ee3fdadc5185883fb9dbfb
parentb4ecfec5ee3f282a4ac0876de332876fec9b488c
regmap: Move the handling for max_raw_write into regmap_raw_write

Currently regmap_bulk_write will split a write into chunks before
calling regmap_raw_write if max_raw_write is set. It is more logical
for this handling to be inside regmap_raw_write itself, as this
removes the need to keep re-implementing the chunking code, which
would be the same for all users of regmap_raw_write.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c