]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: fsl: constify snd_soc_ops structures
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 13 Mar 2017 19:12:22 +0000 (00:42 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 15 Mar 2017 13:34:32 +0000 (13:34 +0000)
Declare snd_soc_ops structures as const as they are only stored
in the ops field of a snd_soc_dai_link structure. This field is
of type const, so snd_soc_ops structures having this property
can be made const too.

The following .o files did not compile:
sound/soc/fsl/{p1022_rdk.c/p1022_ds.c/mpc8610_hpcd.c}

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/eukrea-tlv320.c
sound/soc/fsl/imx-mc13783.c
sound/soc/fsl/mpc8610_hpcd.c
sound/soc/fsl/mx27vis-aic32x4.c
sound/soc/fsl/p1022_ds.c
sound/soc/fsl/p1022_rdk.c
sound/soc/fsl/phycore-ac97.c
sound/soc/fsl/wm1133-ev1.c

index 883087f2b092b1028e279b3cf54ce87ae46954dd..84ef6385736cd5df845aa2d675caaac67ddef1de 100644 (file)
@@ -64,7 +64,7 @@ static int eukrea_tlv320_hw_params(struct snd_pcm_substream *substream,
        return 0;
 }
 
-static struct snd_soc_ops eukrea_tlv320_snd_ops = {
+static const struct snd_soc_ops eukrea_tlv320_snd_ops = {
        .hw_params      = eukrea_tlv320_hw_params,
 };
 
index bb0459018b45faa695c557371887d57d3fce4005..9d19b808f634b81cb0f82e0125077733ce2262b7 100644 (file)
@@ -48,7 +48,7 @@ static int imx_mc13783_hifi_hw_params(struct snd_pcm_substream *substream,
        return snd_soc_dai_set_tdm_slot(cpu_dai, 0x3, 0x3, 2, 16);
 }
 
-static struct snd_soc_ops imx_mc13783_hifi_ops = {
+static const struct snd_soc_ops imx_mc13783_hifi_ops = {
        .hw_params = imx_mc13783_hifi_hw_params,
 };
 
index ddf49f30b23fc9a2faa3934c81c3712c5b2cc627..a639b52c16f6ea52be1048f5be5a814c8a908999 100644 (file)
@@ -174,7 +174,7 @@ static int mpc8610_hpcd_machine_remove(struct snd_soc_card *card)
 /**
  * mpc8610_hpcd_ops: ASoC machine driver operations
  */
-static struct snd_soc_ops mpc8610_hpcd_ops = {
+static const struct snd_soc_ops mpc8610_hpcd_ops = {
        .startup = mpc8610_hpcd_startup,
 };
 
index 198eeb3f3f7a05b570f7a1e280b7228ce7cb0706..d7ec3d20065c9d15a974b75804927658446837d4 100644 (file)
@@ -73,7 +73,7 @@ static int mx27vis_aic32x4_hw_params(struct snd_pcm_substream *substream,
        return 0;
 }
 
-static struct snd_soc_ops mx27vis_aic32x4_snd_ops = {
+static const struct snd_soc_ops mx27vis_aic32x4_snd_ops = {
        .hw_params      = mx27vis_aic32x4_hw_params,
 };
 
index a1f780ecadf54d4e679d39aac2803e24c8be39ec..41c623c55c166df26d08765fbcd8692596307aa4 100644 (file)
@@ -184,7 +184,7 @@ static int p1022_ds_machine_remove(struct snd_soc_card *card)
 /**
  * p1022_ds_ops: ASoC machine driver operations
  */
-static struct snd_soc_ops p1022_ds_ops = {
+static const struct snd_soc_ops p1022_ds_ops = {
        .startup = p1022_ds_startup,
 };
 
index d4d88a8cb9c066296e1254445704880f3e91b34e..4afbdd610bfada7bcf71c768134dc20b99c3d444 100644 (file)
@@ -188,7 +188,7 @@ static int p1022_rdk_machine_remove(struct snd_soc_card *card)
 /**
  * p1022_rdk_ops: ASoC machine driver operations
  */
-static struct snd_soc_ops p1022_rdk_ops = {
+static const struct snd_soc_ops p1022_rdk_ops = {
        .startup = p1022_rdk_startup,
 };
 
index ae403c29688f51605af5c2f29a72fe70e9ac00e0..66fb6c4614d209b0c7dbaca9c7a147f5f4bb6aac 100644 (file)
@@ -23,7 +23,7 @@
 
 static struct snd_soc_card imx_phycore;
 
-static struct snd_soc_ops imx_phycore_hifi_ops = {
+static const struct snd_soc_ops imx_phycore_hifi_ops = {
 };
 
 static struct snd_soc_dai_link imx_phycore_dai_ac97[] = {
index b454972dce3521a48cb0762651bc3fad0a234690..cdaf16367b4714afa74e601ab80448cfaf947211 100644 (file)
@@ -139,7 +139,7 @@ static int wm1133_ev1_hw_params(struct snd_pcm_substream *substream,
        return 0;
 }
 
-static struct snd_soc_ops wm1133_ev1_ops = {
+static const struct snd_soc_ops wm1133_ev1_ops = {
        .hw_params = wm1133_ev1_hw_params,
 };