projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7824463
)
net: phy: marvell: constify marvell_hw_stats
author
Matthias Schiffer
<matthias.schiffer@ew.tq-group.com>
Thu, 2 May 2024 11:13:00 +0000
(13:13 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Tue, 7 May 2024 22:17:52 +0000
(15:17 -0700)
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>
drivers/net/phy/marvell.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/marvell.c
b/drivers/net/phy/marvell.c
index 860dc4001d415b2a00b2d646ebf8e352f9061c57..a57ad53cd09cbf6b50657fe98393ca09f92dfe8d 100644
(file)
--- 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},