]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Try cached read before checking if a hardware read is possible
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 16 Nov 2011 15:28:19 +0000 (16:28 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 16 Nov 2011 17:34:53 +0000 (17:34 +0000)
commit392d507fac490ca081da0bdbf3cb3ccbf97fb07a
treefd45ca553cb7aef1c4665b6a28df92818d8ce507
parent35d7bbcc97577557577555fa04e011563d5aa464
regmap: Try cached read before checking if a hardware read is possible

For some register format types we do not provide a parse_val so we can not do a
hardware read. But a cached read is still possible, so try to read from the
cache first, before checking whether a hardware read is possible. Otherwise the
cache becomes pretty useless for these register types.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap.c