]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3e094520bbae22a7793f5111f26580f5239245b
treebb17c8551acc0a987a7b83bd746005a0a0e94d56
parent4850e75bcfeb3ea12a3f1da618b34a4a100264a6
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