diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-10-13 08:05:44 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-10-13 12:19:40 -0400 |
commit | 694b00010b0dfe727d485c3472cfe3ad7b91dcc2 (patch) | |
tree | ebc05eee4e5c6d6c55cfb33bd82ad13c47c64267 /sound/soc/codecs/twl6040.c | |
parent | aa1a41082fb8c47893186103bf53e96708041e1c (diff) |
ASoC: twl6040: Rename the Earphone Driver event handler
Since the event handler is only used by the Earphone Driver, it is better
to rename it from twl6040_power_mode_event to twl6040_ep_drv_event.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/twl6040.c')
-rw-r--r-- | sound/soc/codecs/twl6040.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/twl6040.c b/sound/soc/codecs/twl6040.c index eadece8f0164..6c573c355d28 100644 --- a/sound/soc/codecs/twl6040.c +++ b/sound/soc/codecs/twl6040.c | |||
@@ -673,7 +673,7 @@ static int twl6040_hs_dac_event(struct snd_soc_dapm_widget *w, | |||
673 | return 0; | 673 | return 0; |
674 | } | 674 | } |
675 | 675 | ||
676 | static int twl6040_power_mode_event(struct snd_soc_dapm_widget *w, | 676 | static int twl6040_ep_drv_event(struct snd_soc_dapm_widget *w, |
677 | struct snd_kcontrol *kcontrol, int event) | 677 | struct snd_kcontrol *kcontrol, int event) |
678 | { | 678 | { |
679 | struct snd_soc_codec *codec = w->codec; | 679 | struct snd_soc_codec *codec = w->codec; |
@@ -1163,7 +1163,7 @@ static const struct snd_soc_dapm_widget twl6040_dapm_widgets[] = { | |||
1163 | SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD), | 1163 | SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD), |
1164 | SND_SOC_DAPM_OUT_DRV_E("Earphone Driver", | 1164 | SND_SOC_DAPM_OUT_DRV_E("Earphone Driver", |
1165 | TWL6040_REG_EARCTL, 0, 0, NULL, 0, | 1165 | TWL6040_REG_EARCTL, 0, 0, NULL, 0, |
1166 | twl6040_power_mode_event, | 1166 | twl6040_ep_drv_event, |
1167 | SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD), | 1167 | SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD), |
1168 | SND_SOC_DAPM_OUT_DRV("Vibra Left Driver", | 1168 | SND_SOC_DAPM_OUT_DRV("Vibra Left Driver", |
1169 | TWL6040_REG_VIBCTLL, 0, 0, NULL, 0), | 1169 | TWL6040_REG_VIBCTLL, 0, 0, NULL, 0), |