Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1660774 > unrolled thread
| Started by | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| First post | 2017-06-08 08:10 +0200 |
| Last post | 2017-06-08 21:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[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
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-06-08 08:10 +0200 |
| Subject | [PATCH 0/2] drivers: net: add const to mii_phy_ops structures |
| Message-ID | <tPYNP-vi-3@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2017-06-08 21:40 +0200 |
| Message-ID | <tQbrH-8p2-9@gated-at.bofh.it> |
| In reply to | #1660774 |
From: Bhumika Goyal <bhumirks@gmail.com> Date: Thu, 8 Jun 2017 11:30:56 +0530 > 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. Series applied, thanks.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web