diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c index 88ad40bc0602..bc5d68c53e5a 100644 --- a/sound/soc/codecs/wcd9335.c +++ b/sound/soc/codecs/wcd9335.c @@ -5005,21 +5005,17 @@ static struct regmap_config wcd9335_ifc_regmap_config = { .num_ranges = ARRAY_SIZE(wcd9335_ifc_ranges), }; -#define WCD9335_REGMAP_IRQ_REG(_irq, _off, _mask) \ - [_irq] = { \ - .reg_offset = (_off), \ - .mask = (_mask), \ - .type = { \ - .type_reg_offset = (_off), \ - .types_supported = IRQ_TYPE_EDGE_BOTH, \ - .type_reg_mask = (_mask), \ - }, \ - } - static const struct regmap_irq wcd9335_codec_irqs[] = { /* INTR_REG 0 */ - WCD9335_REGMAP_IRQ_REG(WCD9335_IRQ_SLIMBUS, 0, BIT(0)), - WCD9335_REGMAP_IRQ_REG(WCD9335_IRQ_SOUNDWIRE, 2, BIT(4)), + [WCD9335_IRQ_SLIMBUS] = { + .reg_offset = 0, + .mask = BIT(0), + .type = { + .type_reg_offset = 0, + .types_supported = IRQ_TYPE_EDGE_BOTH, + .type_reg_mask = BIT(0), + }, + }, }; static const struct regmap_irq_chip wcd9335_regmap_irq1_chip = { diff --git a/sound/soc/codecs/wcd9335.h b/sound/soc/codecs/wcd9335.h index 0597fd3340ea..490fc44144a2 100644 --- a/sound/soc/codecs/wcd9335.h +++ b/sound/soc/codecs/wcd9335.h @@ -631,7 +631,6 @@ #define WCD9335_IRQ_MBHC_BUTTON_PRESS_DET 10 #define WCD9335_IRQ_MBHC_BUTTON_RELEASE_DET 11 #define WCD9335_IRQ_MBHC_ELECT_INS_REM_LEG_DET 12 -#define WCD9335_IRQ_SOUNDWIRE 13 #define SLIM_MANF_ID_QCOM 0x217 #define SLIM_PROD_CODE_WCD9335 0x1a0