[PATCH] usb: gadget: pxa25x_udc: Constify static struct pxa25x_ep_ops

Felipe Balbi balbi at kernel.org
Wed Jul 28 02:25:14 PDT 2021


Rikard Falkeborn <rikard.falkeborn at gmail.com> writes:

> The struct pxa25x_ep_ops is only assigned to the ops field in the
> usb_ep struct, which is a pointer to const struct usb_ep_ops.
> Make it const to allow the compiler to put it in read-only memory.
>
> Signed-off-by: Rikard Falkeborn <rikard.falkeborn at gmail.com>

Acked-by: Felipe Balbi <balbi at kernel.org>

-- 
balbi



More information about the linux-arm-kernel mailing list