regmap: Supply ranges to the sync operations
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 18 Apr 2012 05:34:16 +0000 (10:34 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 05:34:16 +0000 (10:34 +0530)
commit0ba114a26e93ac3ae7325f71123d8da0fdc1f559
tree7f3059ebd2407e6456fa7e5be5d4aaf95afcd987
parent60f75035df3ea2dd9ef58e5a55afb365aa08e953
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>
(cherry picked from commit ac8d91c801905a061ca883dca427a5e19602a1e7)

Change-Id: I92ceee1c704ea7c864bff0559d36cf34554c3ba5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96489
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Conflicts:

drivers/base/regmap/regcache-rbtree.c

Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
drivers/base/regmap/regcache-rbtree.c