gpio: pca953x: Don't hardcode irq trigger type
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 9 Dec 2019 06:27:49 +0000 (11:57 +0530)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 11 Dec 2019 09:46:37 +0000 (10:46 +0100)
Don't hardcode irq trigger to IRQF_TRIGGER_LOW while registering IRQ
handler. IRQ/platform core will take care of setting appropriate trigger
type.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-pca953x.c

index 6652bee01966dc1e2c883c0909820b374599f293..40e48f7d83bb3bed4fdf80bd74e635387a9258d9 100644 (file)
@@ -770,8 +770,7 @@ static int pca953x_irq_setup(struct pca953x_chip *chip, int irq_base)
 
        ret = devm_request_threaded_irq(&client->dev, client->irq,
                                        NULL, pca953x_irq_handler,
-                                       IRQF_TRIGGER_LOW | IRQF_ONESHOT |
-                                       IRQF_SHARED,
+                                       IRQF_ONESHOT | IRQF_SHARED,
                                        dev_name(&client->dev), chip);
        if (ret) {
                dev_err(&client->dev, "failed to request irq %d\n",