regmap: Tidy up regmap_raw_read chunking code
commit1b079ca2c2e9a4652051bc4b62a5ef83d59d86bb
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 15 Feb 2018 17:52:17 +0000 (15 17:52 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 16 Feb 2018 12:03:29 +0000 (16 12:03 +0000)
treee64d032fdf75a466c24252a5b685b7a9040c25d1
parent0645ba4331c2b02ba9907b1591ba722535890e9f
regmap: Tidy up regmap_raw_read chunking code

Raw reads may need to be split into small chunks if max_raw_read 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