Skip to content

drivers: net: add const to mii_phy_ops structures

Bhumika Goyal lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drivers/net/sungem: add const to mii_phy_ops structuresdrivers/net/sungem_phy.c+13 -130 replies
2/2drivers: net: emac: add const to mii_phy_ops structuresdrivers/net/ethernet/ibm/emac/phy.c+6 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] drivers: net: add const to mii_phy_ops structures

The object references of mii_phy_ops structures are only stored in the ops field of a mii_phy_def structure. This ops field is of type const. So, mii_phy_ops structures having similar properties can be declared as const.

Bhumika Goyal (2):
drivers/net/sungem: add const to mii_phy_ops structures
drivers: net: emac: add const to mii_phy_ops structures

 drivers/net/ethernet/ibm/emac/phy.c | 12 ++++++------
 drivers/net/sungem_phy.c            | 26 +++++++++++++-------------
 2 files changed, 19 insertions(+), 19 deletions(-)
Signature · 1 line
2.7.4