]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: pxa25x_udc: Constify static struct pxa25x_ep_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 28 Jul 2021 09:20:52 +0000 (11:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Jul 2021 14:57:59 +0000 (16:57 +0200)
commit3b3f9b08d5c5cbed9baefa58796fe3d8c26f6fab
tree88b90225bf33c507a876bc41a62f26fd5253c0f2
parent05d4b4428e0b9a797e0e8a112fcbc2c96bfe58e6
usb: gadget: pxa25x_udc: Constify static struct pxa25x_ep_ops

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.

Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20210728092052.4178-1-rikard.falkeborn@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/pxa25x_udc.c