regmap: Move the handling for max_raw_read into regmap_raw_read
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 15 Feb 2018 17:52:16 +0000 (17:52 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 16 Feb 2018 12:03:28 +0000 (12:03 +0000)
commit0645ba4331c2b02ba9907b1591ba722535890e9f
treeb884e60723a550c1aa3558bcc5f5108dd2d7ff00
parent45abcc556721a6d18e4af82e20e164044f0a3e36
regmap: Move the handling for max_raw_read into regmap_raw_read

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

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