Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eeef4587 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: gadget: constify all struct usb_gadget_ops



Add the missing 'const' keyword to all struct
usb_gadget_ops in the gadget framework.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 449d04a9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1894,7 +1894,7 @@ static int fsl_qe_stop(struct usb_gadget *gadget,
		struct usb_gadget_driver *driver);

/* defined in usb_gadget.h */
static struct usb_gadget_ops qe_gadget_ops = {
static const struct usb_gadget_ops qe_gadget_ops = {
	.get_frame = qe_get_frame,
	.udc_start = fsl_qe_start,
	.udc_stop = fsl_qe_stop,
+1 −1
Original line number Diff line number Diff line
@@ -1259,7 +1259,7 @@ static int fsl_udc_start(struct usb_gadget *g,
static int fsl_udc_stop(struct usb_gadget *g,
		struct usb_gadget_driver *driver);
/* defined in gadget.h */
static struct usb_gadget_ops fsl_gadget_ops = {
static const struct usb_gadget_ops fsl_gadget_ops = {
	.get_frame = fsl_get_frame,
	.wakeup = fsl_wakeup,
/*	.set_selfpowered = fsl_set_selfpowered,	*/ /* Always selfpowered */
+1 −1
Original line number Diff line number Diff line
@@ -1341,7 +1341,7 @@ static int fusb300_udc_pullup(struct usb_gadget *_gadget, int is_active)
	return 0;
}

static struct usb_gadget_ops fusb300_gadget_ops = {
static const struct usb_gadget_ops fusb300_gadget_ops = {
	.pullup		= fusb300_udc_pullup,
	.udc_start	= fusb300_udc_start,
	.udc_stop	= fusb300_udc_stop,
+1 −1
Original line number Diff line number Diff line
@@ -1526,7 +1526,7 @@ static int m66592_pullup(struct usb_gadget *gadget, int is_on)
	return 0;
}

static struct usb_gadget_ops m66592_gadget_ops = {
static const struct usb_gadget_ops m66592_gadget_ops = {
	.get_frame		= m66592_get_frame,
	.udc_start		= m66592_udc_start,
	.udc_stop		= m66592_udc_stop,
+1 −1
Original line number Diff line number Diff line
@@ -1314,7 +1314,7 @@ static int omap_udc_start(struct usb_gadget *g,
static int omap_udc_stop(struct usb_gadget *g,
		struct usb_gadget_driver *driver);

static struct usb_gadget_ops omap_gadget_ops = {
static const struct usb_gadget_ops omap_gadget_ops = {
	.get_frame		= omap_get_frame,
	.wakeup			= omap_wakeup,
	.set_selfpowered	= omap_set_selfpowered,
Loading