Revert "wcd9335 garbage"

This reverts commit d1f50ba3a4b33c98162c4b202d4c154d4ab22689.
This commit is contained in:
AngeloGioacchino Del Regno 2021-08-10 13:07:40 +02:00 committed by Jami Kettunen
parent d95b982acc
commit 9e2a2c2452
2 changed files with 9 additions and 14 deletions

View file

@ -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 = {

View file

@ -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