* [PATCH net-next v1] ethernet: 3c509: Improve style of pnp_device_id array terminator
@ 2026-06-10 9:46 Uwe Kleine-König (The Capable Hub)
2026-06-13 22:10 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König (The Capable Hub) @ 2026-06-10 9:46 UTC (permalink / raw)
To: Maciej W. Rozycki
Cc: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, netdev, linux-kernel
To match how device-id array terminators look like for other device
types drop `.id = ""` from it and let the compiler care for zeroing the
entry.
There are no changes in the compiled drivers, only the source looks
nicer.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
---
Hello,
I'm currently working on changing various *_device_id definitions.
This patch is irrelevant for this quest and a pure style update for
consistency reasons without further dependencies on it. I just stumbled
over this while working on that quest.
So if you don't like this patch, I won't insist.
Best regards
Uwe
drivers/net/ethernet/3com/3c509.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/3com/3c509.c b/drivers/net/ethernet/3com/3c509.c
index f23be7425daf..3438168befa6 100644
--- a/drivers/net/ethernet/3com/3c509.c
+++ b/drivers/net/ethernet/3com/3c509.c
@@ -438,7 +438,7 @@ static const struct pnp_device_id el3_pnp_ids[] = {
{ .id = "TCM5098" }, /* 3Com Etherlink III (TPC) */
{ .id = "PNP80f7" }, /* 3Com Etherlink III compatible */
{ .id = "PNP80f8" }, /* 3Com Etherlink III compatible */
- { .id = "" }
+ { }
};
MODULE_DEVICE_TABLE(pnp, el3_pnp_ids);
base-commit: 49e02880ec0a8c378e811bc9d85da188d7c6204c
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next v1] ethernet: 3c509: Improve style of pnp_device_id array terminator
2026-06-10 9:46 [PATCH net-next v1] ethernet: 3c509: Improve style of pnp_device_id array terminator Uwe Kleine-König (The Capable Hub)
@ 2026-06-13 22:10 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-06-13 22:10 UTC (permalink / raw)
To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig_=3Cu=2Ekleine-koenig=40baylibre=2Ecom=3E?=
Cc: macro, andrew+netdev, davem, edumazet, kuba, pabeni, netdev,
linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 10 Jun 2026 11:46:53 +0200 you wrote:
> To match how device-id array terminators look like for other device
> types drop `.id = ""` from it and let the compiler care for zeroing the
> entry.
>
> There are no changes in the compiled drivers, only the source looks
> nicer.
>
> [...]
Here is the summary with links:
- [net-next,v1] ethernet: 3c509: Improve style of pnp_device_id array terminator
https://git.kernel.org/netdev/net-next/c/43746895a5a9
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-13 22:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-10 9:46 [PATCH net-next v1] ethernet: 3c509: Improve style of pnp_device_id array terminator Uwe Kleine-König (The Capable Hub)
2026-06-13 22:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox