]> 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)
commita1958a4fdcf66d707b1c1912f534f9f67c8f5d10
treecf3e0851bb71f977c0a00e359b41ed29b1a962dd
parentd326b7daed40fe4f10ada03bcd7214889c87da6e
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