Re: [PATCH 2/2] usb: cdc-wdm: Constify static struct wwan_port_ops

From: Oliver Neukum
Date: Thu Sep 30 2021 - 05:08:36 EST



On 29.09.21 15:21, Rikard Falkeborn wrote:
> 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@xxxxxxxxx>
Acked-by: Oliver Neukum <oneukum@xxxxxxxx>