public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v2 1/2] net: phy: marvell: constify marvell_hw_stats
@ 2024-05-02 11:13 Matthias Schiffer
  2024-05-02 11:13 ` [PATCH net-next v2 2/2] net: phy: marvell: add support for MV88E6250 family internal PHYs Matthias Schiffer
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Matthias Schiffer @ 2024-05-02 11:13 UTC (permalink / raw)
  To: Andrew Lunn, Heiner Kallweit, Russell King
  Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
	netdev, linux-kernel, linux, Matthias Schiffer

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

Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
---

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/


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-07 22:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-02 11:13 [PATCH net-next v2 1/2] net: phy: marvell: constify marvell_hw_stats Matthias Schiffer
2024-05-02 11:13 ` [PATCH net-next v2 2/2] net: phy: marvell: add support for MV88E6250 family internal PHYs Matthias Schiffer
2024-05-07 12:18   ` Andrew Lunn
2024-05-07 12:14 ` [PATCH net-next v2 1/2] net: phy: marvell: constify marvell_hw_stats Andrew Lunn
2024-05-07 22:30 ` 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