Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1599708
| Path | csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Bhumika Goyal <bhumirks@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH] ASoC: fsl: constify snd_soc_ops structures |
| Date | Mon, 13 Mar 2017 20:20:01 +0100 |
| Message-ID | <tkDFD-54Z-5@gated-at.bofh.it> (permalink) |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=2q6PjkzL5nd9A2ySspSELW1YXIOskFn7cjocoN3uD3M=; b=A+kAVwEa+IouCoHk7w83V9n2tv+JLdiYH/5ig0ywKbuihYTV4MXRFOFnjBjbFotO+t tlg1TtwlGDFJ/FlshnKG60xTkVvS1oHjE6UTQd/EimaS2MYp3/6J+pMoqYvTeE1TbbRk aUxJEq2OSgHwLf5S8b0gcYDyfpBV9/0snFyC/qhLNJGySvTebG5wAmjio5qg9G/kml/Z WPXNdY7dci0Mtg9TG/7Us84UxyAfyNLMUUA0LtKOvA1HzKweKSlWz2fJFic2Nl4FjVgv sM0SfNEVqb/eDzpWeB4Ejm+KJWVlx1SIrvQsyOARcLQwPsnXAEtGTnznh9b9ITvmF4V4 LsjA== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2q6PjkzL5nd9A2ySspSELW1YXIOskFn7cjocoN3uD3M=; b=atEjKRRHmp65dC9y+2MEr5EeuI+irorx4Bt/dOVlNvF2ZCaUmLauvRWvTF/FdTZ2Gl wVvnaq4Vch+UBS+14Hk9jvHbKcMvT0J2Id/RyoRwpm0Yuvo4MvITNVs9/xu9p071Kj7m nHlYTRysfKByVVAxCqL8gX8basTbVYZOkf4s+Bzq+YQftjdtobH0QtT28bG1TQPMa3Ge UIXWcvDDvMq7oIV0X1hDhpWC3PzNe7RYaAHXDwlYXvWYhZuEHZVPU9e0vgGbBOulcP5Z qCpOLt9pyrVsmN/pkVb9kfziA4BnvP7v6H4p/gd/XQYIYF7ke357yEcqaH3BdBGgV7U+ 2cfQ== |
| X-Gm-Message-State | AMke39leUXPGmw24wvFR8aFLiPfUoajbbDeJd62hI887egv1EhhqCMuoTOH00MrTDUvdeQ== |
| X-Received | by 10.84.196.164 with SMTP id l33mr50662963pld.0.1489432353136; Mon, 13 Mar 2017 12:12:33 -0700 (PDT) |
| X-Mailer | git-send-email 1.9.1 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 126 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Bhumika Goyal <bhumirks@gmail.com> |
| X-Original-Date | Tue, 14 Mar 2017 00:42:22 +0530 |
| X-Original-Message-ID | <1489432342-4328-1-git-send-email-bhumirks@gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1599708 |
Show key headers only | View raw
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>
---
sound/soc/fsl/eukrea-tlv320.c | 2 +-
sound/soc/fsl/imx-mc13783.c | 2 +-
sound/soc/fsl/mpc8610_hpcd.c | 2 +-
sound/soc/fsl/mx27vis-aic32x4.c | 2 +-
sound/soc/fsl/p1022_ds.c | 2 +-
sound/soc/fsl/p1022_rdk.c | 2 +-
sound/soc/fsl/phycore-ac97.c | 2 +-
sound/soc/fsl/wm1133-ev1.c | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/sound/soc/fsl/eukrea-tlv320.c b/sound/soc/fsl/eukrea-tlv320.c
index 883087f..84ef638 100644
--- a/sound/soc/fsl/eukrea-tlv320.c
+++ b/sound/soc/fsl/eukrea-tlv320.c
@@ -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,
};
diff --git a/sound/soc/fsl/imx-mc13783.c b/sound/soc/fsl/imx-mc13783.c
index bb04590..9d19b80 100644
--- a/sound/soc/fsl/imx-mc13783.c
+++ b/sound/soc/fsl/imx-mc13783.c
@@ -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,
};
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c
index ddf49f3..a639b52 100644
--- a/sound/soc/fsl/mpc8610_hpcd.c
+++ b/sound/soc/fsl/mpc8610_hpcd.c
@@ -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,
};
diff --git a/sound/soc/fsl/mx27vis-aic32x4.c b/sound/soc/fsl/mx27vis-aic32x4.c
index 198eeb3..d7ec3d2 100644
--- a/sound/soc/fsl/mx27vis-aic32x4.c
+++ b/sound/soc/fsl/mx27vis-aic32x4.c
@@ -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,
};
diff --git a/sound/soc/fsl/p1022_ds.c b/sound/soc/fsl/p1022_ds.c
index a1f780e..41c623c 100644
--- a/sound/soc/fsl/p1022_ds.c
+++ b/sound/soc/fsl/p1022_ds.c
@@ -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,
};
diff --git a/sound/soc/fsl/p1022_rdk.c b/sound/soc/fsl/p1022_rdk.c
index d4d88a8..4afbdd6 100644
--- a/sound/soc/fsl/p1022_rdk.c
+++ b/sound/soc/fsl/p1022_rdk.c
@@ -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,
};
diff --git a/sound/soc/fsl/phycore-ac97.c b/sound/soc/fsl/phycore-ac97.c
index ae403c2..66fb6c4 100644
--- a/sound/soc/fsl/phycore-ac97.c
+++ b/sound/soc/fsl/phycore-ac97.c
@@ -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[] = {
diff --git a/sound/soc/fsl/wm1133-ev1.c b/sound/soc/fsl/wm1133-ev1.c
index b454972..cdaf163 100644
--- a/sound/soc/fsl/wm1133-ev1.c
+++ b/sound/soc/fsl/wm1133-ev1.c
@@ -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,
};
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] ASoC: fsl: constify snd_soc_ops structures Bhumika Goyal <bhumirks@gmail.com> - 2017-03-13 20:20 +0100 Applied "ASoC: fsl: constify snd_soc_ops structures" to the asoc tree Mark Brown <broonie@kernel.org> - 2017-03-15 19:20 +0100
csiph-web