gpio: stmpe: Allow to compile as a module
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Mon, 28 Jul 2025 06:05:43 +0000 (08:05 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 11 Aug 2025 09:06:17 +0000 (11:06 +0200)
commit03db20aaa3ba3998b5a025e243b04e33b5bdefa5
tree76c90b3a9b8766f1527d47aca415653647e1a1a3
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585
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>
drivers/gpio/Kconfig
drivers/gpio/gpio-stmpe.c