diff options
author | Biju Das <biju.das.jz@bp.renesas.com> | 2024-02-26 22:16:07 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2024-02-29 16:44:08 +0300 |
commit | 26fea220ad5b97b448741eb6103bb49830b67eb2 (patch) | |
tree | 6fdc187eb3410d3049b5cd165e9053e4cf9cdd2c /drivers/pinctrl | |
parent | 577293d391da30427fa193e7c4b290db1b0b9a3a (diff) | |
download | linux-26fea220ad5b97b448741eb6103bb49830b67eb2.tar.xz |
pinctrl: da9062: Add OF table
Add OF table as per the binding so that driver get instantiated and
bind automatically when the driver is built as a module.
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20240226191607.397386-1-biju.das.jz@bp.renesas.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinctrl-da9062.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-da9062.c b/drivers/pinctrl/pinctrl-da9062.c index 3998b27cbe0e..22e3cd2cc963 100644 --- a/drivers/pinctrl/pinctrl-da9062.c +++ b/drivers/pinctrl/pinctrl-da9062.c @@ -281,10 +281,17 @@ static int da9062_pctl_probe(struct platform_device *pdev) return devm_gpiochip_add_data(&pdev->dev, &pctl->gc, pctl); } +static const struct of_device_id da9062_compatible_reg_id_table[] = { + { .compatible = "dlg,da9062-gpio" }, + { } +}; +MODULE_DEVICE_TABLE(of, da9062_compatible_reg_id_table); + static struct platform_driver da9062_pctl_driver = { .probe = da9062_pctl_probe, .driver = { .name = "da9062-gpio", + .of_match_table = da9062_compatible_reg_id_table, }, }; module_platform_driver(da9062_pctl_driver); |