]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit71df168eb1a41976f85eaf2b44f71368a4559b6b
treefbdd51ab4478d56fdba8d3c30a381c248a5a3718
parentab0f5bcc37fd551d57646e46d3ee83850890fa4f
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