Re: [PATCH v2 5/9] usb: roles: Provide the switch drivers handle to the switch in the API

From: Heikki Krogerus
Date: Mon Mar 02 2020 - 03:01:51 EST


On Mon, Mar 02, 2020 at 09:43:07AM +0200, Heikki Krogerus wrote:
> > > > - cdns->role_sw = usb_role_switch_register(dev, &cdns3_switch_desc);
> > > > + sw_desc.set = cdns3_role_set,
> > > > + sw_desc.get = cdns3_role_get,
> > > > + sw_desc.allow_userspace_control = true,
> >
> > Heikki, when I try to apply above, and compile, I find above issue,
> > the end of code should be ";", but not ",".

So it seems my compiler happily compiles the above :-)

I don't know what is going on with my compiler, but I'll fix that.


thanks,

--
heikki