regmap: Cache single values read from the chip
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 30 Apr 2012 20:25:05 +0000 (21:25 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 30 Apr 2012 21:57:10 +0000 (22:57 +0100)
commitf298536728d02c19f11bda8d712ff61d767bab32
tree7666d562d16a143a9549d0a6feb66b558e22fcbb
parentd939fb9a78b4743bc4bc3cc415894ed42050c5cc
regmap: Cache single values read from the chip

If we don't have a cached value for a register and we can cache it then
when we do a read a value we should add it to the cache to save rereading
it later on. Do this for single register reads, for block reads the code
would be a little more complex and this covers most practical usage.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap.c
This page took 0.025568 seconds and 5 git commands to generate.