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)
commitaea170a099793abcd0e6de46b947458073204241
tree187a6851f204b1dd0c98ccce0545248a25c90f24
parentd779fce5d79525d66269c8f6e430e1515d697f3d
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