regmap: Supply ranges to the sync operations
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 23 Feb 2012 19:31:04 +0000 (19:31 +0000)
committerSimone Willett <swillett@nvidia.com>
Sun, 15 Apr 2012 20:44:41 +0000 (13:44 -0700)
commit9d586b202c93d646167b235864e0cd21b2b2c87c
treeb75b7e2b935e159f20aaf745ecc5dca4fd05570d
parent0b2d70ca84d177d69e7a500945e1caaa758bfca2
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>
drivers/base/regmap/internal.h
drivers/base/regmap/regcache-lzo.c
drivers/base/regmap/regcache-rbtree.c
drivers/base/regmap/regcache.c