[PATCH net-next] net: dsa: mt7530: Constify struct regmap_config
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Sun Jul 13 14:40:06 PDT 2025
Hello:
This patch was applied to netdev/net-next.git (main)
by David S. Miller <davem at davemloft.net>:
On Sun, 13 Jul 2025 17:09:24 +0200 you wrote:
> 'struct regmap_config' are not modified in these drivers. They be
> statically defined instead of allocated and populated at run-time.
>
> The main benefits are:
> - it saves some memory at runtime
> - the structures can be declared as 'const', which is always better for
> structures that hold some function pointers
> - the code is less verbose
>
> [...]
Here is the summary with links:
- [net-next] net: dsa: mt7530: Constify struct regmap_config
https://git.kernel.org/netdev/net-next/c/9eb73f92a0b0
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the Linux-mediatek
mailing list