net: phy: mscc: macsec: constify vsc8584_macsec_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 26 Aug 2020 22:56:07 +0000 (00:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2020 23:21:17 +0000 (16:21 -0700)
commit73a9df4c10292ff4b5a937cac38313568acb05dc
treecf3e0851bb71f977c0a00e359b41ed29b1a962dd
parent3faaf53920dbb5bc3177f208ccbc75580a7ed8a0
net: phy: mscc: macsec: constify vsc8584_macsec_ops

The only usage of vsc8584_macsec_ops is to assign its address to the
macsec_ops field in the phydev struct, which is a const pointer. Make it
const to allow the compiler to put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mscc/mscc_macsec.c