mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-11 13:04:03 +08:00
ASoC: cs42l42: Remove redundant writes to RS_PLUG/RS_UNPLUG masks
The RS_PLUG and RS_UNPLUG interrupt masks are always written as 1 so those writes are redundant and can be deleted. This makes it completely clear in the code that only the TS_PLUG and TS_UNPLUG masks are being changed. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://lore.kernel.org/r/20211116163901.45390-3-rf@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
976001b10f
commit
f2dfbaaa54
@ -1320,12 +1320,8 @@ static void cs42l42_process_hs_type_detect(struct cs42l42_private *cs42l42)
|
|||||||
/* Unmask tip sense interrupts */
|
/* Unmask tip sense interrupts */
|
||||||
regmap_update_bits(cs42l42->regmap,
|
regmap_update_bits(cs42l42->regmap,
|
||||||
CS42L42_TSRS_PLUG_INT_MASK,
|
CS42L42_TSRS_PLUG_INT_MASK,
|
||||||
CS42L42_RS_PLUG_MASK |
|
|
||||||
CS42L42_RS_UNPLUG_MASK |
|
|
||||||
CS42L42_TS_PLUG_MASK |
|
CS42L42_TS_PLUG_MASK |
|
||||||
CS42L42_TS_UNPLUG_MASK,
|
CS42L42_TS_UNPLUG_MASK,
|
||||||
(1 << CS42L42_RS_PLUG_SHIFT) |
|
|
||||||
(1 << CS42L42_RS_UNPLUG_SHIFT) |
|
|
||||||
(0 << CS42L42_TS_PLUG_SHIFT) |
|
(0 << CS42L42_TS_PLUG_SHIFT) |
|
||||||
(0 << CS42L42_TS_UNPLUG_SHIFT));
|
(0 << CS42L42_TS_UNPLUG_SHIFT));
|
||||||
}
|
}
|
||||||
@ -1335,12 +1331,8 @@ static void cs42l42_init_hs_type_detect(struct cs42l42_private *cs42l42)
|
|||||||
/* Mask tip sense interrupts */
|
/* Mask tip sense interrupts */
|
||||||
regmap_update_bits(cs42l42->regmap,
|
regmap_update_bits(cs42l42->regmap,
|
||||||
CS42L42_TSRS_PLUG_INT_MASK,
|
CS42L42_TSRS_PLUG_INT_MASK,
|
||||||
CS42L42_RS_PLUG_MASK |
|
|
||||||
CS42L42_RS_UNPLUG_MASK |
|
|
||||||
CS42L42_TS_PLUG_MASK |
|
CS42L42_TS_PLUG_MASK |
|
||||||
CS42L42_TS_UNPLUG_MASK,
|
CS42L42_TS_UNPLUG_MASK,
|
||||||
(1 << CS42L42_RS_PLUG_SHIFT) |
|
|
||||||
(1 << CS42L42_RS_UNPLUG_SHIFT) |
|
|
||||||
(1 << CS42L42_TS_PLUG_SHIFT) |
|
(1 << CS42L42_TS_PLUG_SHIFT) |
|
||||||
(1 << CS42L42_TS_UNPLUG_SHIFT));
|
(1 << CS42L42_TS_UNPLUG_SHIFT));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user