regmap: cache: Provide a get address of value operation
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Mar 2013 19:29:36 +0000 (19:29 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 26 Mar 2013 21:38:16 +0000 (21:38 +0000)
commit8817796b75c8847d63d6d4523c79c24b47748a05
treeafa323b0fc93ec618da94bc54b40c2047c8a422c
parent0c7ed8563a0282c032936ae1c667498d59691593
regmap: cache: Provide a get address of value operation

Provide a helper to do the size based index into a block of registers and
use it when reading a value.

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