summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/max98371.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2017-09-01 07:33:01 +0300
committerMark Brown <broonie@kernel.org>2017-09-01 14:06:23 +0300
commitb21f0522ee376ddbea54fab47ff36f687f2a438b (patch)
treefb35babfe4e1b510977deb507ec3bd74ad4b1d57 /sound/soc/codecs/max98371.c
parent64220b9d10a5546b6dd1154ccaf43522ae7d02fc (diff)
downloadlinux-b21f0522ee376ddbea54fab47ff36f687f2a438b.tar.xz
ASoC: add missing compile rule for max98371
It is still using old driver style, this patch also fixup it. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/max98371.c')
-rw-r--r--sound/soc/codecs/max98371.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sound/soc/codecs/max98371.c b/sound/soc/codecs/max98371.c
index 781be9ba8dba..7bc2a17c1e94 100644
--- a/sound/soc/codecs/max98371.c
+++ b/sound/soc/codecs/max98371.c
@@ -349,12 +349,14 @@ static struct snd_soc_dai_driver max98371_dai[] = {
};
static const struct snd_soc_codec_driver max98371_codec = {
- .controls = max98371_snd_controls,
- .num_controls = ARRAY_SIZE(max98371_snd_controls),
- .dapm_routes = max98371_audio_map,
- .num_dapm_routes = ARRAY_SIZE(max98371_audio_map),
- .dapm_widgets = max98371_dapm_widgets,
- .num_dapm_widgets = ARRAY_SIZE(max98371_dapm_widgets),
+ .component_driver = {
+ .controls = max98371_snd_controls,
+ .num_controls = ARRAY_SIZE(max98371_snd_controls),
+ .dapm_routes = max98371_audio_map,
+ .num_dapm_routes = ARRAY_SIZE(max98371_audio_map),
+ .dapm_widgets = max98371_dapm_widgets,
+ .num_dapm_widgets = ARRAY_SIZE(max98371_dapm_widgets),
+ },
};
static const struct regmap_config max98371_regmap = {