regmap: Tidy up regmap_raw_write chunking code
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 22 Feb 2018 12:59:13 +0000 (12:59 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 26 Feb 2018 11:00:33 +0000 (11:00 +0000)
commit364e378b8d1679f91a29a9537a881bba17931cfb
treefda07da45533fb24f7ec499fbcc29fc30ce7c2db
parent7ef2c6b8689a084954cffbd102ee49c2fb72cbd4
regmap: Tidy up regmap_raw_write chunking code

Raw writes may need to be split into small chunks if max_raw_write is
set. Tidy up the code implementing this, the new code is slightly
clearer, slightly shorter and slightly more efficient.

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