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)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 30 Jan 2012 16:23:11 +0000 (16:23 +0000)
commit4191f19792bf91267835eb090d970e9cd6277a65
treeef01c8d48b3d6fd9c3f1bbffb4a77c7560c1d4d5
parentc212acccc368a087a53559aac2b7d3be941b1252
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>
drivers/base/regmap/regmap.c
This page took 0.025579 seconds and 5 git commands to generate.