]> 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)
commitcc519aa403897e87eaf52691f9e2bc39ab143e47
tree91764ef341262983e9e642aa1ac023be5fee3dbd
parent1657698e0b1cda510d0ff4dbd12e0c2d79e0252e
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