Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Matthias Schiffer and committed by
Jakub Kicinski
71dd027a 7824463a

+1 -1
+1 -1
drivers/net/phy/marvell.c
··· 313 313 u8 bits; 314 314 }; 315 315 316 - static struct marvell_hw_stat marvell_hw_stats[] = { 316 + static const struct marvell_hw_stat marvell_hw_stats[] = { 317 317 { "phy_receive_errors_copper", 0, 21, 16}, 318 318 { "phy_idle_errors", 0, 10, 8 }, 319 319 { "phy_receive_errors_fiber", 1, 21, 16},