]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ASoC: cs35l35: Add IRQF_SHARED to IRQ flags
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Wed, 8 Mar 2017 16:42:51 +0000 (16:42 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 13 Mar 2017 16:09:25 +0000 (16:09 +0000)
As it is quite common to use a stereo pair of amps but share the IRQ
line between them both add the IRQF_SHARED flag whilst requesting
cs35l35's IRQ.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l35.c

index 99bcdb96235974d98d3f2f6dd6d747a6446613c9..7c4d74ec32cb1bb433a4e35e7dd78920b491a2fd 100644 (file)
@@ -1427,8 +1427,8 @@ static int cs35l35_i2c_probe(struct i2c_client *i2c_client,
        init_completion(&cs35l35->pdn_done);
 
        ret = devm_request_threaded_irq(dev, i2c_client->irq, NULL, cs35l35_irq,
-                                       IRQF_ONESHOT | IRQF_TRIGGER_LOW,
-                                       "cs35l35", cs35l35);
+                                       IRQF_ONESHOT | IRQF_TRIGGER_LOW |
+                                       IRQF_SHARED, "cs35l35", cs35l35);
        if (ret != 0) {
                dev_err(dev, "Failed to request IRQ: %d\n", ret);
                goto err;