* [PATCH 1/2] pinctrl: bcm: Move MODULE_DEVICE_TABLE next to the table itself
@ 2026-05-05 9:43 Krzysztof Kozlowski
2026-05-05 9:43 ` [PATCH 2/2] pinctrl: rockchip: " Krzysztof Kozlowski
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-05-05 9:43 UTC (permalink / raw)
To: Rafał Miłecki, Broadcom internal kernel review list,
Linus Walleij, Ray Jui, Scott Branden, Heiko Stuebner, linux-gpio,
linux-kernel, linux-arm-kernel, linux-rockchip
Cc: Krzysztof Kozlowski
By convention MODULE_DEVICE_TABLE() immediately follows the ID table it
exports, because this is easier to read and verify. It also makes more
sense since #ifdef for ACPI or OF could hide both of them.
Most of the pin controller drivers already have this correctly placed,
so adjust the other drivers. No functional impact.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
Apologies for sending it immediately after previous Qualcomm patch
without grouping as patchset. Initially I fixed only Qualcomm but then
figure out that poor patterns like to spread and I can also investigate
other files.
---
drivers/pinctrl/bcm/pinctrl-bcm4908.c | 2 +-
drivers/pinctrl/bcm/pinctrl-ns.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pinctrl/bcm/pinctrl-bcm4908.c b/drivers/pinctrl/bcm/pinctrl-bcm4908.c
index 12f7a253ea4d..57969cdbc635 100644
--- a/drivers/pinctrl/bcm/pinctrl-bcm4908.c
+++ b/drivers/pinctrl/bcm/pinctrl-bcm4908.c
@@ -466,6 +466,7 @@ static const struct of_device_id bcm4908_pinctrl_of_match_table[] = {
{ .compatible = "brcm,bcm4908-pinctrl", },
{ }
};
+MODULE_DEVICE_TABLE(of, bcm4908_pinctrl_of_match_table);
static int bcm4908_pinctrl_probe(struct platform_device *pdev)
{
@@ -561,4 +562,3 @@ module_platform_driver(bcm4908_pinctrl_driver);
MODULE_AUTHOR("Rafał Miłecki");
MODULE_DESCRIPTION("Broadcom BCM4908 pinmux driver");
MODULE_LICENSE("GPL v2");
-MODULE_DEVICE_TABLE(of, bcm4908_pinctrl_of_match_table);
diff --git a/drivers/pinctrl/bcm/pinctrl-ns.c b/drivers/pinctrl/bcm/pinctrl-ns.c
index 03bd01b4a945..e134c9c73450 100644
--- a/drivers/pinctrl/bcm/pinctrl-ns.c
+++ b/drivers/pinctrl/bcm/pinctrl-ns.c
@@ -204,6 +204,7 @@ static const struct of_device_id ns_pinctrl_of_match_table[] = {
{ .compatible = "brcm,bcm53012-pinmux", .data = (void *)FLAG_BCM53012, },
{ }
};
+MODULE_DEVICE_TABLE(of, ns_pinctrl_of_match_table);
static int ns_pinctrl_probe(struct platform_device *pdev)
{
@@ -295,4 +296,3 @@ static struct platform_driver ns_pinctrl_driver = {
module_platform_driver(ns_pinctrl_driver);
MODULE_AUTHOR("Rafał Miłecki");
-MODULE_DEVICE_TABLE(of, ns_pinctrl_of_match_table);
--
2.51.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] pinctrl: rockchip: Move MODULE_DEVICE_TABLE next to the table itself
2026-05-05 9:43 [PATCH 1/2] pinctrl: bcm: Move MODULE_DEVICE_TABLE next to the table itself Krzysztof Kozlowski
@ 2026-05-05 9:43 ` Krzysztof Kozlowski
2026-05-05 12:56 ` Linus Walleij
2026-05-05 12:56 ` [PATCH 1/2] pinctrl: bcm: " Linus Walleij
2026-05-05 17:41 ` Florian Fainelli
2 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-05-05 9:43 UTC (permalink / raw)
To: Rafał Miłecki, Broadcom internal kernel review list,
Linus Walleij, Ray Jui, Scott Branden, Heiko Stuebner, linux-gpio,
linux-kernel, linux-arm-kernel, linux-rockchip
Cc: Krzysztof Kozlowski
By convention MODULE_DEVICE_TABLE() immediately follows the ID table it
exports, because this is easier to read and verify. It also makes more
sense since #ifdef for ACPI or OF could hide both of them.
Most of the pin controller drivers already have this correctly placed,
so adjust the other drivers. No functional impact.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
---
drivers/pinctrl/pinctrl-rockchip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c
index 2f14c7f9c95a..7e0fcd45fd26 100644
--- a/drivers/pinctrl/pinctrl-rockchip.c
+++ b/drivers/pinctrl/pinctrl-rockchip.c
@@ -5303,6 +5303,7 @@ static const struct of_device_id rockchip_pinctrl_dt_match[] = {
.data = &rk3588_pin_ctrl },
{},
};
+MODULE_DEVICE_TABLE(of, rockchip_pinctrl_dt_match);
static struct platform_driver rockchip_pinctrl_driver = {
.probe = rockchip_pinctrl_probe,
@@ -5329,4 +5330,3 @@ module_exit(rockchip_pinctrl_drv_unregister);
MODULE_DESCRIPTION("ROCKCHIP Pin Controller Driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:pinctrl-rockchip");
-MODULE_DEVICE_TABLE(of, rockchip_pinctrl_dt_match);
--
2.51.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] pinctrl: bcm: Move MODULE_DEVICE_TABLE next to the table itself
2026-05-05 9:43 [PATCH 1/2] pinctrl: bcm: Move MODULE_DEVICE_TABLE next to the table itself Krzysztof Kozlowski
2026-05-05 9:43 ` [PATCH 2/2] pinctrl: rockchip: " Krzysztof Kozlowski
@ 2026-05-05 12:56 ` Linus Walleij
2026-05-05 17:41 ` Florian Fainelli
2 siblings, 0 replies; 5+ messages in thread
From: Linus Walleij @ 2026-05-05 12:56 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rafał Miłecki, Broadcom internal kernel review list,
Ray Jui, Scott Branden, Heiko Stuebner, linux-gpio, linux-kernel,
linux-arm-kernel, linux-rockchip
On Tue, May 5, 2026 at 11:43 AM Krzysztof Kozlowski
<krzysztof.kozlowski@oss.qualcomm.com> wrote:
> By convention MODULE_DEVICE_TABLE() immediately follows the ID table it
> exports, because this is easier to read and verify. It also makes more
> sense since #ifdef for ACPI or OF could hide both of them.
>
> Most of the pin controller drivers already have this correctly placed,
> so adjust the other drivers. No functional impact.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] pinctrl: rockchip: Move MODULE_DEVICE_TABLE next to the table itself
2026-05-05 9:43 ` [PATCH 2/2] pinctrl: rockchip: " Krzysztof Kozlowski
@ 2026-05-05 12:56 ` Linus Walleij
0 siblings, 0 replies; 5+ messages in thread
From: Linus Walleij @ 2026-05-05 12:56 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rafał Miłecki, Broadcom internal kernel review list,
Ray Jui, Scott Branden, Heiko Stuebner, linux-gpio, linux-kernel,
linux-arm-kernel, linux-rockchip
On Tue, May 5, 2026 at 11:43 AM Krzysztof Kozlowski
<krzysztof.kozlowski@oss.qualcomm.com> wrote:
> By convention MODULE_DEVICE_TABLE() immediately follows the ID table it
> exports, because this is easier to read and verify. It also makes more
> sense since #ifdef for ACPI or OF could hide both of them.
>
> Most of the pin controller drivers already have this correctly placed,
> so adjust the other drivers. No functional impact.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] pinctrl: bcm: Move MODULE_DEVICE_TABLE next to the table itself
2026-05-05 9:43 [PATCH 1/2] pinctrl: bcm: Move MODULE_DEVICE_TABLE next to the table itself Krzysztof Kozlowski
2026-05-05 9:43 ` [PATCH 2/2] pinctrl: rockchip: " Krzysztof Kozlowski
2026-05-05 12:56 ` [PATCH 1/2] pinctrl: bcm: " Linus Walleij
@ 2026-05-05 17:41 ` Florian Fainelli
2 siblings, 0 replies; 5+ messages in thread
From: Florian Fainelli @ 2026-05-05 17:41 UTC (permalink / raw)
To: Krzysztof Kozlowski, Rafał Miłecki,
Broadcom internal kernel review list, Linus Walleij, Ray Jui,
Scott Branden, Heiko Stuebner, linux-gpio, linux-kernel,
linux-arm-kernel, linux-rockchip
On 5/5/26 02:43, 'Krzysztof Kozlowski' via BCM-KERNEL-FEEDBACK-LIST,PDL
wrote:
> By convention MODULE_DEVICE_TABLE() immediately follows the ID table it
> exports, because this is easier to read and verify. It also makes more
> sense since #ifdef for ACPI or OF could hide both of them.
>
> Most of the pin controller drivers already have this correctly placed,
> so adjust the other drivers. No functional impact.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
>
> ---
late to the party:
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
--
Florian
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-05-05 17:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-05 9:43 [PATCH 1/2] pinctrl: bcm: Move MODULE_DEVICE_TABLE next to the table itself Krzysztof Kozlowski
2026-05-05 9:43 ` [PATCH 2/2] pinctrl: rockchip: " Krzysztof Kozlowski
2026-05-05 12:56 ` Linus Walleij
2026-05-05 12:56 ` [PATCH 1/2] pinctrl: bcm: " Linus Walleij
2026-05-05 17:41 ` Florian Fainelli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox