]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-cache: Add reg_size as a member to snd_soc_codec
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Wed, 12 Jan 2011 10:38:58 +0000 (10:38 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 12 Jan 2011 14:55:23 +0000 (14:55 +0000)
commitc581ca974305370fe996f3fe737b9ff3c6c8ce74
tree187a6851f204b1dd0c98ccce0545248a25c90f24
parent8a5d0916dadd7fc0a3a57a400454e0ef6708b3c1
ASoC: soc-cache: Add reg_size as a member to snd_soc_codec

Simplify the use of reg_size, by calculating it once and storing it in
the codec structure for later reference.  The value of reg_size is
reg_cache_size * reg_word_size.

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
sound/soc/soc-core.c