gpio: zevio: Remove duplicate assignment of of_gpio_n_cells
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 12 Jan 2023 16:39:40 +0000 (18:39 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 30 Jan 2023 14:55:30 +0000 (15:55 +0100)
The of_gpio_n_cells default is 2 when ->of_xlate() callback is
not defined. No need to assign it explicitly in the driver.

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

index ce9d1282165c8cb018d1db2cd554d3135656afad..c9f4c26cae3d2918bc76492b3485474d0dd1f2e1 100644 (file)
@@ -162,7 +162,6 @@ static const struct gpio_chip zevio_gpio_chip = {
        .base                   = 0,
        .owner                  = THIS_MODULE,
        .ngpio                  = 32,
-       .of_gpio_n_cells        = 2,
 };
 
 /* Initialization */