diff options
| author | saturneric <[email protected]> | 2025-03-30 23:28:28 +0000 |
|---|---|---|
| committer | saturneric <[email protected]> | 2025-03-30 23:28:28 +0000 |
| commit | 4005cedb116bc25be160fd9f749c1c8f3059057b (patch) | |
| tree | ce3ece0cef561c6e969eca633b2cdb7360255714 /drivers/gpio/gpio-pca953x.c | |
| parent | Merge remote-tracking UNTIL 14. Jan 2025 (diff) | |
| parent | Linux 6.14 (diff) | |
| download | kernel-4005cedb116bc25be160fd9f749c1c8f3059057b.tar.gz kernel-4005cedb116bc25be160fd9f749c1c8f3059057b.zip | |
Merge remote-tracking UNTIL 24. Mar 2025
Diffstat (limited to 'drivers/gpio/gpio-pca953x.c')
| -rw-r--r-- | drivers/gpio/gpio-pca953x.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index b30ec77c7fe5..eba352bff9bb 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -841,25 +841,6 @@ static bool pca953x_irq_pending(struct pca953x_chip *chip, unsigned long *pendin DECLARE_BITMAP(trigger, MAX_LINE); int ret; - if (chip->driver_data & PCA_PCAL) { - /* Read the current interrupt status from the device */ - ret = pca953x_read_regs(chip, PCAL953X_INT_STAT, trigger); - if (ret) - return false; - - /* Check latched inputs and clear interrupt status */ - ret = pca953x_read_regs(chip, chip->regs->input, cur_stat); - if (ret) - return false; - - /* Apply filter for rising/falling edge selection */ - bitmap_replace(new_stat, chip->irq_trig_fall, chip->irq_trig_raise, cur_stat, gc->ngpio); - - bitmap_and(pending, new_stat, trigger, gc->ngpio); - - return !bitmap_empty(pending, gc->ngpio); - } - ret = pca953x_read_regs(chip, chip->regs->input, cur_stat); if (ret) return false; @@ -1088,7 +1069,8 @@ static int pca953x_probe(struct i2c_client *client) */ reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); if (IS_ERR(reset_gpio)) - return PTR_ERR(reset_gpio); + return dev_err_probe(dev, PTR_ERR(reset_gpio), + "Failed to get reset gpio\n"); } chip->client = client; |
