diff options
author | Matthias Schiffer <matthias.schiffer@ew.tq-group.com> | 2024-05-02 13:13:00 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-05-07 15:17:52 -0700 |
commit | 71dd027ab453bfed1d21bdb5e04a40b4fe7a2eea (patch) | |
tree | 06f0104a13f0dc06dc64dda33731bc6cf49df470 /drivers/net/phy | |
parent | 7824463aaea913f6d43c6e1f169ba2fc5de1d35c (diff) |
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 <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/24d7a2f39e0c4c94466e8ad43228fdd798053f3a.1714643285.git.matthias.schiffer@ew.tq-group.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/phy')
-rw-r--r-- | drivers/net/phy/marvell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 860dc4001d41..a57ad53cd09c 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}, |