]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: qualcomm: constify qca_serdev_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 26 Aug 2020 22:56:03 +0000 (00:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2020 23:21:17 +0000 (16:21 -0700)
commit886a7d175ea476216ca042a4792625a03c084265
treecaa582025c462c07cfb4985a93fc5b4951eb1837
parent04428a474bb231b74ee6b20bc5ba734d538d44b9
net: ethernet: qualcomm: constify qca_serdev_ops

The only usage of qca_serdev_ops is to pass its address to
serdev_device_set_client_ops() which takes 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/qualcomm/qca_uart.c