]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ASoC: Remove 'reg_size' field from snd_soc_codec struct
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 31 Aug 2013 18:31:14 +0000 (20:31 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 16 Sep 2013 23:37:03 +0000 (00:37 +0100)
commita94ed23436fb28bdcdd66e7fcf68ca5f7967e456
tree0584c2db7f2d1a0b8a21da7f50a95453a78708e5
parentb012aa619e50d22df0835b64a5dcebc221fb8053
ASoC: Remove 'reg_size' field from snd_soc_codec struct

The reg_size field is calculated in snd_soc_register_codec() and then used
exactly once in snd_soc_flat_cache_init(). Since it is calculated based on other
fields from the codec struct just move the calculation to
snd_soc_flat_cache_init() and remove the 'reg_size' field from the codec struct.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc.h
sound/soc/soc-cache.c
sound/soc/soc-core.c