usb: cdc-wdm: Constify static struct wwan_port_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 29 Sep 2021 19:45:47 +0000 (21:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Oct 2021 10:58:17 +0000 (12:58 +0200)
commitc608dc105bd4533be8fd532a82f9c1fe5f0b121f
tree1f5d7737211dd53e8aa1f2fd0c7cacd055fec72e
parent8c9e880bb98cba546ffaf97b85c5111f0aa86f79
usb: cdc-wdm: Constify static struct wwan_port_ops

The only usage of wdm_wwan_port_ops is to pass its address to
wwan_create_port() which takes a pointer to const wwan_port_ops as
argument. Make it const to allow the compiler to put it in read-only
memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Acked-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/20210929194547.46954-3-rikard.falkeborn@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-wdm.c