提交 3056557f 编写于 作者: M Mark Brown

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: NMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: NLiam Girdwood <lrg@ti.com>
上级 7bd3a6f3
...@@ -445,8 +445,8 @@ struct snd_soc_dapm_route { ...@@ -445,8 +445,8 @@ struct snd_soc_dapm_route {
/* dapm audio path between two widgets */ /* dapm audio path between two widgets */
struct snd_soc_dapm_path { struct snd_soc_dapm_path {
char *name; const char *name;
char *long_name; const char *long_name;
/* source (input) and sink (output) widgets */ /* source (input) and sink (output) widgets */
struct snd_soc_dapm_widget *source; struct snd_soc_dapm_widget *source;
...@@ -469,8 +469,8 @@ struct snd_soc_dapm_path { ...@@ -469,8 +469,8 @@ struct snd_soc_dapm_path {
/* dapm widget */ /* dapm widget */
struct snd_soc_dapm_widget { struct snd_soc_dapm_widget {
enum snd_soc_dapm_type id; enum snd_soc_dapm_type id;
char *name; /* widget name */ const char *name; /* widget name */
char *sname; /* stream name */ const char *sname; /* stream name */
struct snd_soc_codec *codec; struct snd_soc_codec *codec;
struct snd_soc_platform *platform; struct snd_soc_platform *platform;
struct list_head list; struct list_head list;
......
...@@ -366,7 +366,7 @@ void snd_soc_free_ac97_codec(struct snd_soc_codec *codec); ...@@ -366,7 +366,7 @@ void snd_soc_free_ac97_codec(struct snd_soc_codec *codec);
*Controls *Controls
*/ */
struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template, struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template,
void *data, char *long_name, void *data, const char *long_name,
const char *prefix); const char *prefix);
int snd_soc_add_codec_controls(struct snd_soc_codec *codec, int snd_soc_add_codec_controls(struct snd_soc_codec *codec,
const struct snd_kcontrol_new *controls, int num_controls); const struct snd_kcontrol_new *controls, int num_controls);
......
...@@ -2018,7 +2018,7 @@ EXPORT_SYMBOL_GPL(snd_soc_set_runtime_hwparams); ...@@ -2018,7 +2018,7 @@ EXPORT_SYMBOL_GPL(snd_soc_set_runtime_hwparams);
* Returns 0 for success, else error. * Returns 0 for success, else error.
*/ */
struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template, struct snd_kcontrol *snd_soc_cnew(const struct snd_kcontrol_new *_template,
void *data, char *long_name, void *data, const char *long_name,
const char *prefix) const char *prefix)
{ {
struct snd_kcontrol_new template; struct snd_kcontrol_new template;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册