]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/net/sungem: add const to mii_phy_ops structures
authorBhumika Goyal <bhumirks@gmail.com>
Thu, 8 Jun 2017 06:00:57 +0000 (11:30 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Jun 2017 19:32:47 +0000 (15:32 -0400)
commite220d008e6825bec25f20f3df0ac42e1d159d3e8
tree91764ef341262983e9e642aa1ac023be5fee3dbd
parent2e59fdbf330dd9317532feb7b592b9b232c0bd3b
drivers/net/sungem: 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.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sungem_phy.c