Skip to content

Commit d0b3847

Browse files
Peter Ujfalusibroonie
authored andcommitted
ASoC/mfd: twl4030: Remove set_hs_extmute callback from platform data
We no longer have users for the set_hs_extmute callback which has been replaced by hs_extmute_gpio so the codec driver can handle the external mute if it is needed by the board. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent eb775d3 commit d0b3847

2 files changed

Lines changed: 0 additions & 8 deletions

File tree

‎include/linux/i2c/twl.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,8 +667,6 @@ struct twl4030_codec_data {
667667
unsigned int check_defaults:1;
668668
unsigned int reset_registers:1;
669669
unsigned int hs_extmute:1;
670-
void (*set_hs_extmute)(int mute); /* Deprecated, use hs_extmute_gpio and
671-
hs_extmute_disable_level */
672670
int hs_extmute_gpio;
673671
};
674672

‎sound/soc/codecs/twl4030.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -767,9 +767,6 @@ static void headset_ramp(struct snd_soc_codec *codec, int ramp)
767767
if (pdata && pdata->hs_extmute) {
768768
if (gpio_is_valid(pdata->hs_extmute_gpio)) {
769769
gpio_set_value(pdata->hs_extmute_gpio, 1);
770-
} else if (pdata->set_hs_extmute) {
771-
dev_warn(codec->dev, "set_hs_extmute is deprecated\n");
772-
pdata->set_hs_extmute(1);
773770
} else {
774771
hs_pop |= TWL4030_EXTMUTE;
775772
twl4030_write(codec, TWL4030_REG_HS_POPN_SET, hs_pop);
@@ -808,9 +805,6 @@ static void headset_ramp(struct snd_soc_codec *codec, int ramp)
808805
if (pdata && pdata->hs_extmute) {
809806
if (gpio_is_valid(pdata->hs_extmute_gpio)) {
810807
gpio_set_value(pdata->hs_extmute_gpio, 0);
811-
} else if (pdata->set_hs_extmute) {
812-
dev_warn(codec->dev, "set_hs_extmute is deprecated\n");
813-
pdata->set_hs_extmute(0);
814808
} else {
815809
hs_pop &= ~TWL4030_EXTMUTE;
816810
twl4030_write(codec, TWL4030_REG_HS_POPN_SET, hs_pop);

0 commit comments

Comments
 (0)