ASoC: dapm: Add a helper to get the CODEC for DAPM kcontrol
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 29 Jul 2013 15:13:57 +0000 (17:13 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 29 Jul 2013 17:40:59 +0000 (18:40 +0100)
commiteee5d7f99ae95059e1a3d1cfa2dea3ed8dbd94ac
tree438cc363a91ee9ddb6ca0584f30e80e476323ac3
parent95dd5cd6e16d86786f7dc9da404ae477403d8f83
ASoC: dapm: Add a helper to get the CODEC for DAPM kcontrol

We use the same 3 lines to get the CODEC for a kcontrol in a quite a few places.
This patch puts them into a common helper function. Having this encapsulated in
a helper function will also make it more easier to eventually change the data
layout of the kcontrol's private data.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc-dapm.h
sound/soc/codecs/tlv320aic3x.c
sound/soc/codecs/twl6040.c
sound/soc/codecs/wm8903.c
sound/soc/codecs/wm8994.c
sound/soc/codecs/wm8995.c
sound/soc/codecs/wm_hubs.c
sound/soc/soc-dapm.c
This page took 0.026156 seconds and 5 git commands to generate.