]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Drop check whether a register is readable in regcache_read
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 16 Nov 2011 19:34:04 +0000 (20:34 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 17 Nov 2011 16:51:27 +0000 (16:51 +0000)
commit91f19d3dbd1cc1115a7da00fb49978d1783261b5
tree1208c5fa80a8e0b4f14844914afc76914572eb67
parentc2cc0263ec4f574dd01791bc3404f7ad15c9fb07
regmap: Drop check whether a register is readable in regcache_read

One of the reasons for using a cache is to have a software shadow of a register
which is writable but not readable. This allows us to do a read-modify-write
operation on such a register.

Currently regcache checks whether a register is readable when performing a
cached read and returns an error if it is not. Drop this check, since it will
prevent us from using the cache for registers where read-back is not possible.

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