Thread (2 messages) 2 messages, 2 authors, 2021-07-28

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

From: Felipe Balbi <balbi@kernel.org>
Date: 2021-07-28 09:25:20
Also in: linux-arm-kernel, lkml

Rikard Falkeborn [off-list ref] 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 <redacted>
Acked-by: Felipe Balbi <balbi@kernel.org>

-- 
balbi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help