regulator: sy8824x: Enable REGCACHE_FLAT
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Tue, 3 Aug 2021 08:50:43 +0000 (16:50 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 3 Aug 2021 17:27:18 +0000 (18:27 +0100)
commit784ed36958390c511cd48db061401f9ba20ba67a
tree95b605cd725f83f9797dc5ef21cecb20158a7e20
parent15b4d2b972014b789f22d9267bcff1cc48153738
regulator: sy8824x: Enable REGCACHE_FLAT

Enable regmap cache to reduce i2c transactions and corresponding
interrupts if regulator is accessed frequently. Since the register map
is small -- there's only one register in sy8824c and sy8824e, there
are only two registers in sy20276 and sy20278, so we use a FLAT regmap
cache.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Link: https://lore.kernel.org/r/20210803165043.042ec24d@xhacker.debian
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/sy8824x.c