ASoC: soc-cache: Warn on syncing any non-writable registers
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Mon, 28 Mar 2011 10:39:15 +0000 (11:39 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 30 Mar 2011 21:21:29 +0000 (06:21 +0900)
commitf20eda5d8fafe35ca3c63ec8149a700a7db228a5
treecf300d095ab70d3b5b897fc5581bd3b057a55837
parentfbda18245beff52ec1edf096e7a77d4cdf3effb9
ASoC: soc-cache: Warn on syncing any non-writable registers

When syncing the cache, if the driver has given us a writable_register()
callback, use it to check if we are syncing a non-writable register
and if so warn the user.

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