]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4c8cb029e0d22abb94a2b21092caa7fcae3b4079
treecf3e0851bb71f977c0a00e359b41ed29b1a962dd
parent01452ba6a5d408d8cba9de88f4bf5546783563e4
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