diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-01-07 13:25:13 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-01-09 05:31:30 -0500 |
commit | 1649923dd52ce914be98bff0ae352344ef04f305 (patch) | |
tree | 68ae01e5d58c7d765c1c649edbbf33861dc2d2b7 /sound/soc/soc-dapm.c | |
parent | ca9c1aaec4187fc9922cfb6b283fffef89286943 (diff) |
ASoC: Constify pin names for DAPM pin status APIs
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-dapm.c')
-rw-r--r-- | sound/soc/soc-dapm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 6362c7641ce5..a35ce69d9d78 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
@@ -961,7 +961,7 @@ static void dapm_free_widgets(struct snd_soc_codec *codec) | |||
961 | } | 961 | } |
962 | 962 | ||
963 | static int snd_soc_dapm_set_pin(struct snd_soc_codec *codec, | 963 | static int snd_soc_dapm_set_pin(struct snd_soc_codec *codec, |
964 | char *pin, int status) | 964 | const char *pin, int status) |
965 | { | 965 | { |
966 | struct snd_soc_dapm_widget *w; | 966 | struct snd_soc_dapm_widget *w; |
967 | 967 | ||
@@ -1643,7 +1643,7 @@ int snd_soc_dapm_set_bias_level(struct snd_soc_device *socdev, | |||
1643 | * NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to | 1643 | * NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to |
1644 | * do any widget power switching. | 1644 | * do any widget power switching. |
1645 | */ | 1645 | */ |
1646 | int snd_soc_dapm_enable_pin(struct snd_soc_codec *codec, char *pin) | 1646 | int snd_soc_dapm_enable_pin(struct snd_soc_codec *codec, const char *pin) |
1647 | { | 1647 | { |
1648 | return snd_soc_dapm_set_pin(codec, pin, 1); | 1648 | return snd_soc_dapm_set_pin(codec, pin, 1); |
1649 | } | 1649 | } |
@@ -1658,7 +1658,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_enable_pin); | |||
1658 | * NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to | 1658 | * NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to |
1659 | * do any widget power switching. | 1659 | * do any widget power switching. |
1660 | */ | 1660 | */ |
1661 | int snd_soc_dapm_disable_pin(struct snd_soc_codec *codec, char *pin) | 1661 | int snd_soc_dapm_disable_pin(struct snd_soc_codec *codec, const char *pin) |
1662 | { | 1662 | { |
1663 | return snd_soc_dapm_set_pin(codec, pin, 0); | 1663 | return snd_soc_dapm_set_pin(codec, pin, 0); |
1664 | } | 1664 | } |
@@ -1678,7 +1678,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_disable_pin); | |||
1678 | * NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to | 1678 | * NOTE: snd_soc_dapm_sync() needs to be called after this for DAPM to |
1679 | * do any widget power switching. | 1679 | * do any widget power switching. |
1680 | */ | 1680 | */ |
1681 | int snd_soc_dapm_nc_pin(struct snd_soc_codec *codec, char *pin) | 1681 | int snd_soc_dapm_nc_pin(struct snd_soc_codec *codec, const char *pin) |
1682 | { | 1682 | { |
1683 | return snd_soc_dapm_set_pin(codec, pin, 0); | 1683 | return snd_soc_dapm_set_pin(codec, pin, 0); |
1684 | } | 1684 | } |
@@ -1693,7 +1693,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_nc_pin); | |||
1693 | * | 1693 | * |
1694 | * Returns 1 for connected otherwise 0. | 1694 | * Returns 1 for connected otherwise 0. |
1695 | */ | 1695 | */ |
1696 | int snd_soc_dapm_get_pin_status(struct snd_soc_codec *codec, char *pin) | 1696 | int snd_soc_dapm_get_pin_status(struct snd_soc_codec *codec, const char *pin) |
1697 | { | 1697 | { |
1698 | struct snd_soc_dapm_widget *w; | 1698 | struct snd_soc_dapm_widget *w; |
1699 | 1699 | ||