gpio: stmpe: Allow to compile as a module

Add the necessary boilerplate to also make this driver modular.
Keep the subsys_initcall to not change registration order for built-in.
Also add OF match table for module autoloading.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20250728060544.18169-1-alexander.stein@ew.tq-group.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
This commit is contained in:
Alexander Stein
2025-07-28 08:05:43 +02:00
committed by Bartosz Golaszewski
parent 8f5ae30d69
commit 03db20aaa3
2 changed files with 19 additions and 3 deletions

View File

@@ -1559,7 +1559,7 @@ config GPIO_SL28CPLD
called gpio-sl28cpld.
config GPIO_STMPE
bool "STMPE GPIOs"
tristate "STMPE GPIOs"
depends on MFD_STMPE
depends on OF_GPIO
select GPIOLIB_IRQCHIP