Skip to content

Commit 55f8bbb

Browse files
r-vigneshbrgl
authored andcommitted
gpio: pca953x: Don't hardcode irq trigger type
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 <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent e42617b commit 55f8bbb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpio/gpio-pca953x.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,8 +770,7 @@ static int pca953x_irq_setup(struct pca953x_chip *chip, int irq_base)
770770

771771
ret = devm_request_threaded_irq(&client->dev, client->irq,
772772
NULL, pca953x_irq_handler,
773-
IRQF_TRIGGER_LOW | IRQF_ONESHOT |
774-
IRQF_SHARED,
773+
IRQF_ONESHOT | IRQF_SHARED,
775774
dev_name(&client->dev), chip);
776775
if (ret) {
777776
dev_err(&client->dev, "failed to request irq %d\n",

0 commit comments

Comments
 (0)