From: Bhumika Goyal <bhumirks@gmail.com>
To: julia.lawall@lip6.fr, lgirdwood@gmail.com, broonie@kernel.org,
perex@perex.cz, tiwai@suse.com, linux-tegra@vger.kernel.org,
thierry.reding@gmail.com, gnurou@gmail.com,
alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH] ASoC: tegra: constify tegra30_ahub_soc_data structures
Date: Sun, 15 Jan 2017 23:09:29 +0530 [thread overview]
Message-ID: <1484501969-7945-1-git-send-email-bhumirks@gmail.com> (raw)
The tegra30_ahub_soc_data structures are only stored in the data field
of of_device_id structures. This field is of type const, so
tegra30_ahub_soc_data structures having the same property can be
declared const too.
File size before: sound/soc/tegra/tegra30_ahub.o
text data bss dec hex filename
7079 240 8 7327 1c9f sound/soc/tegra/tegra30_ahub.o
File size after: sound/soc/tegra/tegra30_ahub.o
text data bss dec hex filename
7143 192 8 7343 1caf sound/soc/tegra/tegra30_ahub.o
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
sound/soc/tegra/tegra30_ahub.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sound/soc/tegra/tegra30_ahub.c b/sound/soc/tegra/tegra30_ahub.c
index fef3b9a..e63ef8d 100644
--- a/sound/soc/tegra/tegra30_ahub.c
+++ b/sound/soc/tegra/tegra30_ahub.c
@@ -493,17 +493,17 @@ static bool tegra30_ahub_ahub_wr_rd_reg(struct device *dev, unsigned int reg)
.cache_type = REGCACHE_FLAT,
};
-static struct tegra30_ahub_soc_data soc_data_tegra30 = {
+static const struct tegra30_ahub_soc_data soc_data_tegra30 = {
.mod_list_mask = MOD_LIST_MASK_TEGRA30,
.set_audio_cif = tegra30_ahub_set_cif,
};
-static struct tegra30_ahub_soc_data soc_data_tegra114 = {
+static const struct tegra30_ahub_soc_data soc_data_tegra114 = {
.mod_list_mask = MOD_LIST_MASK_TEGRA114,
.set_audio_cif = tegra30_ahub_set_cif,
};
-static struct tegra30_ahub_soc_data soc_data_tegra124 = {
+static const struct tegra30_ahub_soc_data soc_data_tegra124 = {
.mod_list_mask = MOD_LIST_MASK_TEGRA124,
.set_audio_cif = tegra124_ahub_set_cif,
};
--
1.9.1
reply other threads:[~2017-01-15 17:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1484501969-7945-1-git-send-email-bhumirks@gmail.com \
--to=bhumirks@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=gnurou@gmail.com \
--cc=julia.lawall@lip6.fr \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=perex@perex.cz \
--cc=thierry.reding@gmail.com \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).