]> git.baikalelectronics.ru Git - kernel.git/commit
net: renesas: sh_eth: constify bb_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 26 Aug 2020 22:56:05 +0000 (00:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2020 23:21:17 +0000 (16:21 -0700)
commitda324b5f47acab4669a60a09d017077a66917c96
tree675cb99f3b8b00aba09cb4954d0cd37310d2ecf5
parent4c26d349a9d1f006e65e4929c5154b898a72e174
net: renesas: sh_eth: constify bb_ops

The only usage of bb_ops is to assign its address to the ops field in
the mdiobb_ctrl 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/ethernet/renesas/sh_eth.c