Commit 71dd027a authored by Matthias Schiffer's avatar Matthias Schiffer Committed by Jakub Kicinski

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: default avatarMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/24d7a2f39e0c4c94466e8ad43228fdd798053f3a.1714643285.git.matthias.schiffer@ew.tq-group.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 7824463a
...@@ -313,7 +313,7 @@ struct marvell_hw_stat { ...@@ -313,7 +313,7 @@ struct marvell_hw_stat {
u8 bits; 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_receive_errors_copper", 0, 21, 16},
{ "phy_idle_errors", 0, 10, 8 }, { "phy_idle_errors", 0, 10, 8 },
{ "phy_receive_errors_fiber", 1, 21, 16}, { "phy_receive_errors_fiber", 1, 21, 16},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment