ASoC/MFD: twl6040: Combine bit definitions for Headset control registers
Use one set of defines for the HS bits, since they are identical in both control register. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:

committed by
Mark Brown

parent
d13f1fe044
commit
ab6cf13943
@@ -642,7 +642,7 @@ static int pga_event(struct snd_soc_dapm_widget *w,
|
||||
static int headset_power_mode(struct snd_soc_codec *codec, int high_perf)
|
||||
{
|
||||
int hslctl, hsrctl;
|
||||
int mask = TWL6040_HSDRVMODEL | TWL6040_HSDACMODEL;
|
||||
int mask = TWL6040_HSDRVMODE | TWL6040_HSDACMODE;
|
||||
|
||||
hslctl = twl6040_read_reg_cache(codec, TWL6040_REG_HSLCTL);
|
||||
hsrctl = twl6040_read_reg_cache(codec, TWL6040_REG_HSRCTL);
|
||||
|
Reference in New Issue
Block a user