Skip to content

Commit 694b000

Browse files
Peter Ujfalusibroonie
authored andcommitted
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent aa1a410 commit 694b000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/soc/codecs/twl6040.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ static int twl6040_hs_dac_event(struct snd_soc_dapm_widget *w,
673673
return 0;
674674
}
675675

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,
677677
struct snd_kcontrol *kcontrol, int event)
678678
{
679679
struct snd_soc_codec *codec = w->codec;
@@ -1163,7 +1163,7 @@ static const struct snd_soc_dapm_widget twl6040_dapm_widgets[] = {
11631163
SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
11641164
SND_SOC_DAPM_OUT_DRV_E("Earphone Driver",
11651165
TWL6040_REG_EARCTL, 0, 0, NULL, 0,
1166-
twl6040_power_mode_event,
1166+
twl6040_ep_drv_event,
11671167
SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
11681168
SND_SOC_DAPM_OUT_DRV("Vibra Left Driver",
11691169
TWL6040_REG_VIBCTLL, 0, 0, NULL, 0),

0 commit comments

Comments
 (0)