[PATCH] pinctrl: sx150x: allow build when I2C is a module

Tsz Shan Chan posted 1 patch 2 months ago
drivers/pinctrl/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] pinctrl: sx150x: allow build when I2C is a module
Posted by Tsz Shan Chan 2 months ago
PINCTRL_SX150X currently depends on I2C=y. This prevents the driver
from being built when I2C is configured as module.

Change the Kconfig dependency to just I2C so sx150x can be built as a
module when I2C is also a module.

Signed-off-by: Tsz Shan Chan <tchan@jacques.com.au>
---
 drivers/pinctrl/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index eda54aa5fde6..ab09cb41500b 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -575,7 +575,7 @@ config PINCTRL_STMFX
 
 config PINCTRL_SX150X
 	tristate "Semtech SX150x I2C GPIO expander pinctrl driver"
-	depends on I2C=y
+	depends on I2C
 	select PINMUX
 	select PINCONF
 	select GENERIC_PINCONF
-- 
2.55.0
Re: [PATCH] pinctrl: sx150x: allow build when I2C is a module
Posted by Linus Walleij 1 month, 4 weeks ago
On Fri, Jul 31, 2026 at 9:18 AM Tsz Shan Chan <tsz.chan.dev@gmail.com> wrote:

> PINCTRL_SX150X currently depends on I2C=y. This prevents the driver
> from being built when I2C is configured as module.
>
> Change the Kconfig dependency to just I2C so sx150x can be built as a
> module when I2C is also a module.
>
> Signed-off-by: Tsz Shan Chan <tchan@jacques.com.au>

Patch applied!

Yours,
Linus Walleij