]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: ts4800: Remove duplicate code to handle 'ngpios' property
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 19 Feb 2026 13:46:47 +0000 (14:46 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Mon, 23 Feb 2026 09:42:14 +0000 (10:42 +0100)
commit0acbe817c37344f10cb413663be494ad66bf40bc
treee69c2e115a0ce9fe2cca5aea1af9bbce64eb1349
parentc08381ad56a9cc111f893b2b21400ceb468cc698
gpio: ts4800: Remove duplicate code to handle 'ngpios' property

The gpio_generic_chip_init() handles the 'ngpios' property and
assigns the respective field in struct gpio_chip either with
the value of it, or, if not found, with the default based on
the register size. There is no need to repeat this in the driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260219134647.2258593-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-ts4800.c