netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] drivers: net: add const to mii_phy_ops structures
@ 2017-06-08  6:00 Bhumika Goyal
  2017-06-08  6:00 ` [PATCH 1/2] drivers/net/sungem: " Bhumika Goyal
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Bhumika Goyal @ 2017-06-08  6:00 UTC (permalink / raw)
  To: julia.lawall, netdev, linux-kernel, jeffrey.t.kirsher, davem
  Cc: Bhumika Goyal

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(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-06-08 19:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08  6:00 [PATCH 0/2] drivers: net: add const to mii_phy_ops structures Bhumika Goyal
2017-06-08  6:00 ` [PATCH 1/2] drivers/net/sungem: " Bhumika Goyal
2017-06-08  6:00 ` [PATCH 2/2] drivers: net: emac: " Bhumika Goyal
2017-06-08 19:33 ` [PATCH 0/2] drivers: net: " David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).