mfd: wcd934x: Add macro for adding new interrupts
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 10 May 2021 09:12:38 +0000 (10:12 +0100)
committerLee Jones <lee.jones@linaro.org>
Wed, 2 Jun 2021 09:49:59 +0000 (10:49 +0100)
commita7618119c2549378b016252eafa0b7209681229d
treebb17c8551acc0a987a7b83bd746005a0a0e94d56
parent608b1bf1cd0a6b1ffb572d4fff9353a140174dbb
mfd: wcd934x: Add macro for adding new interrupts

Currently only two interrupts supported is added in wcd934x interrupt controller,
however if we are adding more interrupts the file will become too much unreadable.

So add a macro to make adding new interrupts easy and also convert existing
slim and soundwire interrupts to use it.
This is in preparation to enable Multi Button Headset Control support on this
codec.

WCD934x supports Multi Button Headset control which enable headset detection
along with headset button detection.

This patch adds interrupts required for MBHC functionality.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/wcd934x.c