ASoC: Add indirection for CODEC private data
[deliverable/linux.git] / sound / soc / codecs / ak4104.c
index b68d99fb6af0a41ce8b3f55781c82cda336f07ae..962d74682122bd2f2a4e800a84d03505890156d2 100644 (file)
@@ -221,7 +221,7 @@ static int ak4104_spi_probe(struct spi_device *spi)
        codec->owner = THIS_MODULE;
        codec->dai = &ak4104_dai;
        codec->num_dai = 1;
-       codec->private_data = ak4104;
+       snd_soc_codec_set_drvdata(codec, ak4104);
        codec->control_data = spi;
        codec->reg_cache = ak4104->reg_cache;
        codec->reg_cache_size = AK4104_NUM_REGS;
This page took 0.034932 seconds and 5 git commands to generate.