regmap: Merge redundant handling in regmap_bulk_write
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 22 Feb 2018 12:59:14 +0000 (12:59 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 26 Feb 2018 11:00:34 +0000 (11:00 +0000)
commitfb44f3cec35c6e71865012fa281ba6d4ff50a99a
tree098516f476110de81489686e28e692d5431c4090
parent364e378b8d1679f91a29a9537a881bba17931cfb
regmap: Merge redundant handling in regmap_bulk_write

The handling for the first two cases in regmap_bulk_write is
essentially identical. The first case is just a better implementation of
the second, supporting 8 byte registers and doing the locking manually to
avoid bouncing the lock for each register. Drop some redundant code by
removing the second of these cases and allowing both situations to be
handled by the same code.

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