ASoC: soc-cache: Add support for default readable()/volatile() functions
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Thu, 13 Jan 2011 12:20:36 +0000 (12:20 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 13 Jan 2011 14:17:32 +0000 (14:17 +0000)
commit066d16c3e8194677a9aaeb06a45e4014387d16f1
treefbdd51ab4478d56fdba8d3c30a381c248a5a3718
parent3e8e2cc45c9d6b5c1265838a8cff701815321dbc
ASoC: soc-cache: Add support for default readable()/volatile() functions

For common scenarios, device drivers can provide a table of all the
registers that are at least either readable/writable/volatile.  The idea
is that if a register lookup fails, all of its read/write/vol members
will be zero and will be treated as default.  This also reduces the
size of the register access array.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/sound/soc.h
sound/soc/soc-cache.c