From: Mark Brown Date: Mon, 30 Apr 2012 20:25:05 +0000 (+0100) Subject: regmap: Cache single values read from the chip X-Git-Tag: v3.5-rc1~178^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f298536728d02c19f11bda8d712ff61d767bab32;p=pandora-kernel.git 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 --- Reading git-diff-tree failed