regmap: debugfs: Add support for dumping write only device registers
authorCristian Birsan <cristian.birsan@microchip.com>
Mon, 8 Aug 2016 15:44:22 +0000 (18:44 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 9 Aug 2016 12:43:33 +0000 (13:43 +0100)
commit359a2f17604e2c1c8938be2bba32a8cef9cf6303
tree3523caf97e7e0c9d993ebb066881511533027638
parent1ea975cf1ef57b1e44c0aec4820f60bb3b60904b
regmap: debugfs: Add support for dumping write only device registers

Add support for dumping write only device registers in debugfs. This is
useful for audio codecs that have write only registers (like WM8731).
The logic that decides if a value can be printed is moved to
regmap_printable() function to allow for easier future updates.

Signed-off-by: Cristian Birsan <cristian.birsan@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-debugfs.c