]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/soc/codecs/ak4671.c
ASoC: Add indirection for CODEC private data
[mirror_ubuntu-bionic-kernel.git] / sound / soc / codecs / ak4671.c
index 82fca284d00761c67ed920c000236b4e9fbd5bf8..18fd4475413c4aca49d615aaf3cb11c83fff0a42 100644 (file)
@@ -701,7 +701,7 @@ static int ak4671_register(struct ak4671_priv *ak4671,
        INIT_LIST_HEAD(&codec->dapm_widgets);
        INIT_LIST_HEAD(&codec->dapm_paths);
 
-       codec->private_data = ak4671;
+       snd_soc_codec_set_drvdata(codec,  ak4671);
        codec->name = "AK4671";
        codec->owner = THIS_MODULE;
        codec->bias_level = SND_SOC_BIAS_OFF;