Add compliance for kernel 4.9
authorTracy Yi <tracy-yi@ti.com>
Thu, 18 Jan 2018 09:29:17 +0000 (17:29 +0800)
committerTracy Yi <tracy-yi@ti.com>
Thu, 18 Jan 2018 09:29:17 +0000 (17:29 +0800)
Signed-off-by: Tracy Yi <tracy-yi@ti.com>
tas2770-codec.c

index 23d99c9d1489ecc98055b1993635f2ee66771ed8..2e77cd107088973e2fc7462aa803d1b7818fe6f5 100644 (file)
@@ -522,12 +522,14 @@ static struct snd_soc_codec_driver soc_codec_driver_tas2770 = {
        .write                  = tas2770_codec_write,
        .suspend                = tas2770_codec_suspend,
        .resume                 = tas2770_codec_resume,
-//     .controls               = tas2770_snd_controls,
-//     .num_controls           = ARRAY_SIZE(tas2770_snd_controls),
-       .dapm_widgets           = tas2770_dapm_widgets,
-       .num_dapm_widgets       = ARRAY_SIZE(tas2770_dapm_widgets),
-       .dapm_routes            = tas2770_audio_map,
-       .num_dapm_routes        = ARRAY_SIZE(tas2770_audio_map),
+       .component_driver = {
+//             .controls               = tas2770_snd_controls,
+//             .num_controls           = ARRAY_SIZE(tas2770_snd_controls),
+               .dapm_widgets           = tas2770_dapm_widgets,
+               .num_dapm_widgets       = ARRAY_SIZE(tas2770_dapm_widgets),
+               .dapm_routes            = tas2770_audio_map,
+               .num_dapm_routes        = ARRAY_SIZE(tas2770_audio_map),
+       },
 };
 
 int tas2770_register_codec(struct tas2770_priv *pTAS2770)