From: Lars-Peter Clausen Date: Tue, 18 Mar 2014 08:02:05 +0000 (+0100) Subject: ASoC: Add snd_soc_kcontrol_platform() helper function X-Git-Tag: omap-for-v3.16/fixes-against-rc1~21^2~52^2~14^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6272ff8a5f42c614f4a338013f5323979121e0f;p=pandora-kernel.git ASoC: Add snd_soc_kcontrol_platform() helper function For platform controls snd_kcontrol_chip() currently returns a pointer to the platform that registered the control. With the upcoming consolidation of platform and CODEC controls this will change. Prepare for this by introducing the snd_soc_kcontrol_platform() helper function that will hide the implementation details of how the platform for a control can be obtained. This will allow us to change this easily in the future. The patch also updates all platforms to use this new helper function. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed