gpio: madera: Add support for CS47L92/CS47L93 codecs
authorStuart Henderson <stuarth@opensource.wolfsonmicro.com>
Mon, 24 Apr 2017 12:58:49 +0000 (13:58 +0100)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:27 +0000 (20:22 +0300)
Change-Id: I6e19fd25d1f2a92104e010deea97c443c9b92c9a
Signed-off-by: Stuart Henderson <stuarth@opensource.wolfsonmicro.com>
drivers/gpio/gpio-madera.c

index d700e939b967d7deff9690db2cd6c66163d9884c..1ef377ef4a74c2b4e3c3e4bd340cb92413775241 100644 (file)
@@ -151,6 +151,10 @@ static int madera_gpio_probe(struct platform_device *pdev)
        case CS47L91:
                madera_gpio->gpio_chip.ngpio = CS47L90_NUM_GPIOS;
                break;
+       case CS47L92:
+       case CS47L93:
+               madera_gpio->gpio_chip.ngpio = CS47L92_NUM_GPIOS;
+               break;
        default:
                dev_err(&pdev->dev, "Unknown chip variant %d\n", madera->type);
                return -EINVAL;