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)
committerLokesh Pathak <lpathak@nvidia.com>
Mon, 5 Mar 2012 15:59:15 +0000 (07:59 -0800)
commit096f635bbc06c97e90b70e1722f05ec1facfb622
tree98df8741b389dcb5a2ebcd2e3317917aba57a397
parentb8c04fab23eb0a2b891410acbc180efb02606295
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
drivers/base/regmap/regmap.c