regulator: sy8827n: Enable REGCACHE_FLAT
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Tue, 3 Aug 2021 08:52:11 +0000 (16:52 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 3 Aug 2021 17:27:19 +0000 (18:27 +0100)
commit6bdd1c672a2afbcd1a6d50dc2351ef4ea0bbfc61
treecb7d6276d8755fd89c7713f98b31ff0a349c0f00
parent784ed36958390c511cd48db061401f9ba20ba67a
regulator: sy8827n: Enable REGCACHE_FLAT

Enable regmap cache to reduce i2c transactions and corresponding
interrupts if regulator is accessed frequently. Since the register map
is small, we use a FLAT regmap cache.

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