Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1660774

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

From Bhumika Goyal <bhumirks@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 0/2] drivers: net: add const to mii_phy_ops structures
Date 2017-06-08 08:10 +0200
Message-ID <tPYNP-vi-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] drivers: net: add const to mii_phy_ops structures Bhumika Goyal <bhumirks@gmail.com> - 2017-06-08 08:10 +0200
  Re: [PATCH 0/2] drivers: net: add const to mii_phy_ops structures David Miller <davem@davemloft.net> - 2017-06-08 21:40 +0200

csiph-web