mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
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>
This commit is contained in:
committed by
Jakub Kicinski
parent
7824463aae
commit
71dd027ab4
@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user