]> git.karo-electronics.de Git - karo-tx-linux.git/commit
regmap: Supply ranges to the sync operations
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 23 Feb 2012 19:31:04 +0000 (19:31 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 24 Feb 2012 14:52:40 +0000 (14:52 +0000)
commitac8d91c801905a061ca883dca427a5e19602a1e7
tree3b715a8aa18db4ed553811595c113ef95e1c5f75
parent6ff7373809a9b4eb644d83e2e299da297e1cbffa
regmap: Supply ranges to the sync operations

In order to allow us to support partial sync operations add minimum and
maximum register arguments to the sync operation and update the rbtree
and lzo caches to use this new information. The LZO implementation is
obviously not good, we could exit the iteration earlier, but there may
be room for more wide reaching optimisation there.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/internal.h
drivers/base/regmap/regcache-lzo.c
drivers/base/regmap/regcache-rbtree.c
drivers/base/regmap/regcache.c