[PATCH v2 4/4] usb: gadget: atmel: Add DM_USB_GADGET support
Marek Vasut
marex at denx.de
Tue Jul 23 01:44:07 CEST 2024
On 7/22/24 10:23 PM, Zixun LI wrote:
[...]
> +static int usba_udc_probe(struct udevice *dev)
> +{
> + struct usba_priv_data *priv = dev_get_priv(dev);
> + int ret;
> +
> + ret = usba_udc_clk_init(dev, &priv->clks);
> + if (ret)
> + return ret;
> +
> + controller = &udc_controller;
Is it possible to extract the controller point from udevice private data?
> + controller->usba_ep = usba_udc_pdata(&pdata, controller);
> +
> + controller->driver = 0;
Please use = NULL if -> driver is a pointer.
More information about the U-Boot
mailing list