pinctrl: sx150x: Make the driver tristate

Set PINCTRL_SX150X config option as a tristate and add
MODULE_DEVICE_TABLE()/MODULE_LICENSE() to export appropriate information.

Signed-off-by: Fange Zhang <fange.zhang@oss.qualcomm.com>
Link: https://lore.kernel.org/20250818-modularize-sx150x-gpio-expander-v1-1-c2a027200fed@oss.qualcomm.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Fange Zhang 2025-08-18 12:41:23 +08:00 committed by Linus Walleij
parent ec205a9292
commit fe2e8f17a5
2 changed files with 5 additions and 1 deletions

View file

@ -550,7 +550,7 @@ config PINCTRL_STMFX
interrupt-controller.
config PINCTRL_SX150X
bool "Semtech SX150x I2C GPIO expander pinctrl driver"
tristate "Semtech SX150x I2C GPIO expander pinctrl driver"
depends on I2C=y
select PINMUX
select PINCONF

View file

@ -863,6 +863,7 @@ static const struct of_device_id sx150x_of_match[] = {
{ .compatible = "semtech,sx1509q", .data = &sx1509q_device_data },
{},
};
MODULE_DEVICE_TABLE(of, sx150x_of_match);
static int sx150x_reset(struct sx150x_pinctrl *pctl)
{
@ -1266,3 +1267,6 @@ static int __init sx150x_init(void)
return i2c_add_driver(&sx150x_driver);
}
subsys_initcall(sx150x_init);
MODULE_DESCRIPTION("Semtech SX150x I2C GPIO expander pinctrl driver");
MODULE_LICENSE("GPL");