summaryrefslogtreecommitdiffstats
path: root/include/sound/soc-dapm.h
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-16 17:07:42 -0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-02-17 08:10:06 -0800
commit3056557f3b2387d4ac99ca8af14956cd2bf003c2 (patch)
tree50e637171d2a717c7e3993d5ae6b684e3cebc1bf /include/sound/soc-dapm.h
parent7bd3a6f34cdd4b1776ca34d0b6fab216e9323759 (diff)
downloadblackbird-op-linux-3056557f3b2387d4ac99ca8af14956cd2bf003c2.tar.gz
blackbird-op-linux-3056557f3b2387d4ac99ca8af14956cd2bf003c2.zip
ASoC: dapm: Constify lots of names that are never modified
Neater and avoids warnings when used in other places where const strings are desired. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'include/sound/soc-dapm.h')
-rw-r--r--include/sound/soc-dapm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/sound/soc-dapm.h b/include/sound/soc-dapm.h
index c32c52167b53..91eb8126c00e 100644
--- a/include/sound/soc-dapm.h
+++ b/include/sound/soc-dapm.h
@@ -445,8 +445,8 @@ struct snd_soc_dapm_route {
/* dapm audio path between two widgets */
struct snd_soc_dapm_path {
- char *name;
- char *long_name;
+ const char *name;
+ const char *long_name;
/* source (input) and sink (output) widgets */
struct snd_soc_dapm_widget *source;
@@ -469,8 +469,8 @@ struct snd_soc_dapm_path {
/* dapm widget */
struct snd_soc_dapm_widget {
enum snd_soc_dapm_type id;
- char *name; /* widget name */
- char *sname; /* stream name */
+ const char *name; /* widget name */
+ const char *sname; /* stream name */
struct snd_soc_codec *codec;
struct snd_soc_platform *platform;
struct list_head list;
OpenPOWER on IntegriCloud