regmap: if format_write is used, declare all registers as "unreadable"
authorWolfram Sang <w.sang@pengutronix.de>
Mon, 30 Jan 2012 14:08:16 +0000 (15:08 +0100)
committerDan Willemsen <dwillemsen@nvidia.com>
Wed, 21 Mar 2012 05:31:34 +0000 (22:31 -0700)
commit953e84aa6a2023aaab27a030b467d436de866ea3
tree94aa72b77329ffeebbca21b8c884338e7ba7bfb5
parenta450745b35262cbd6f9f047ac52efe0f978c3b5f
regmap: if format_write is used, declare all registers as "unreadable"

Using .format_write means, we have a custom function to write to the
chip, but not to read back. Also, mark registers as "not precious" and
"not volatile" which is implicit because we cannot read them. Make those
functions use 'regmap_readable' to reuse the checks done there.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 4191f19792bf91267835eb090d970e9cd6277a65)

Change-Id: Iff0be114904ada151315750fdd92ba562dab6314
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/87584

Rebase-Id: R1d15a24b79029b883c922c5bb11dc64a1166d061
drivers/base/regmap/regmap.c