gpio: pca953x: Remove unused PCAL953X_OUT_CONF from pcal6534_recalc_addr()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 10 Dec 2022 22:06:01 +0000 (00:06 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 30 Jan 2023 14:55:27 +0000 (15:55 +0100)
First of all, PCAL953X_OUT_CONF is not used in the driver.
Second, it's not a per-bank register, it's a single for the
chip and should be handled differently anyway.

To avoid confusion, drop PCAL953X_OUT_CONF from pcal6534_recalc_addr().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-pca953x.c

index 8aba8df393bd68c449c3a7a11d830aba4ada1459..1286b22ef23af608b42a9a8b6b6b539875c90ca4 100644 (file)
@@ -461,7 +461,6 @@ static u8 pcal6534_recalc_addr(struct pca953x_chip *chip, int reg, int off)
        case PCAL953X_PULL_SEL:
        case PCAL953X_INT_MASK:
        case PCAL953X_INT_STAT:
-       case PCAL953X_OUT_CONF:
                pinctrl = ((reg & PCAL_PINCTRL_MASK) >> 1) + 0x20;
                break;
        case PCAL6524_INT_EDGE: