2024-05-02 11:14:47

by Matthias Schiffer

[permalink] [raw]
Subject: [PATCH net-next v2 1/2] net: phy: marvell: constify marvell_hw_stats

The list of stat registers is read-only, so we can declare it as const.

Signed-off-by: Matthias Schiffer <[email protected]>
---

v2: New patch

drivers/net/phy/marvell.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c
index 860dc4001d415..a57ad53cd09cb 100644
--- a/drivers/net/phy/marvell.c
+++ b/drivers/net/phy/marvell.c
@@ -313,7 +313,7 @@ struct marvell_hw_stat {
u8 bits;
};

-static struct marvell_hw_stat marvell_hw_stats[] = {
+static const struct marvell_hw_stat marvell_hw_stats[] = {
{ "phy_receive_errors_copper", 0, 21, 16},
{ "phy_idle_errors", 0, 10, 8 },
{ "phy_receive_errors_fiber", 1, 21, 16},
--
TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany
Amtsgericht München, HRB 105018
Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider
https://www.tq-group.com/



2024-05-07 12:35:52

by Andrew Lunn

[permalink] [raw]
Subject: Re: [PATCH net-next v2 1/2] net: phy: marvell: constify marvell_hw_stats

On Thu, May 02, 2024 at 01:13:00PM +0200, Matthias Schiffer wrote:
> The list of stat registers is read-only, so we can declare it as const.
>
> Signed-off-by: Matthias Schiffer <[email protected]>

Reviewed-by: Andrew Lunn <[email protected]>

Andrew

2024-05-07 22:30:47

by patchwork-bot+netdevbpf

[permalink] [raw]
Subject: Re: [PATCH net-next v2 1/2] net: phy: marvell: constify marvell_hw_stats

Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <[email protected]>:

On Thu, 2 May 2024 13:13:00 +0200 you wrote:
> The list of stat registers is read-only, so we can declare it as const.
>
> Signed-off-by: Matthias Schiffer <[email protected]>
> ---
>
> v2: New patch
>
> [...]

Here is the summary with links:
- [net-next,v2,1/2] net: phy: marvell: constify marvell_hw_stats
https://git.kernel.org/netdev/net-next/c/71dd027ab453
- [net-next,v2,2/2] net: phy: marvell: add support for MV88E6250 family internal PHYs
https://git.kernel.org/netdev/net-next/c/ecc2ae6176a9

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html