.. | .. |
---|
207 | 207 | { |
---|
208 | 208 | struct dentry *root; |
---|
209 | 209 | |
---|
210 | | - root = debugfs_create_dir(udc->gadget.name, NULL); |
---|
| 210 | + root = debugfs_create_dir(udc->gadget.name, usb_debug_root); |
---|
211 | 211 | udc->debugfs_root = root; |
---|
212 | 212 | |
---|
213 | 213 | debugfs_create_file("udcstate", 0400, root, udc, &state_dbg_fops); |
---|
.. | .. |
---|
386 | 386 | |
---|
387 | 387 | /** |
---|
388 | 388 | * ep_write_UDCCSR - set bits in UDCCSR |
---|
389 | | - * @udc: udc device |
---|
| 389 | + * @ep: udc endpoint |
---|
390 | 390 | * @mask: bits to set in UDCCR |
---|
391 | 391 | * |
---|
392 | 392 | * Sets bits in UDCCSR (UDCCSR0 and UDCCSR*). |
---|
.. | .. |
---|
472 | 472 | |
---|
473 | 473 | /** |
---|
474 | 474 | * set_ep0state - Set ep0 automata state |
---|
475 | | - * @dev: udc device |
---|
| 475 | + * @udc: udc device |
---|
476 | 476 | * @state: state |
---|
477 | 477 | */ |
---|
478 | 478 | static void set_ep0state(struct pxa_udc *udc, int state) |
---|
.. | .. |
---|
498 | 498 | /** |
---|
499 | 499 | * inc_ep_stats_reqs - Update ep stats counts |
---|
500 | 500 | * @ep: physical endpoint |
---|
501 | | - * @req: usb request |
---|
502 | 501 | * @is_in: ep direction (USB_DIR_IN or 0) |
---|
503 | 502 | * |
---|
504 | 503 | */ |
---|
.. | .. |
---|
1473 | 1472 | * Context: any |
---|
1474 | 1473 | * |
---|
1475 | 1474 | * The UDC should be enabled if : |
---|
1476 | | - |
---|
1477 | 1475 | * - the pullup resistor is connected |
---|
1478 | 1476 | * - and a gadget driver is bound |
---|
1479 | 1477 | * - and vbus is sensed (or no vbus sense is available) |
---|
.. | .. |
---|
1688 | 1686 | |
---|
1689 | 1687 | /** |
---|
1690 | 1688 | * udc_enable - Enables the udc device |
---|
1691 | | - * @dev: udc device |
---|
| 1689 | + * @udc: udc device |
---|
1692 | 1690 | * |
---|
1693 | 1691 | * Enables the udc device : enables clocks, udc interrupts, control endpoint |
---|
1694 | 1692 | * interrupts, sets usb as UDC client and setups endpoints. |
---|
.. | .. |
---|
1732 | 1730 | |
---|
1733 | 1731 | /** |
---|
1734 | 1732 | * pxa27x_start - Register gadget driver |
---|
| 1733 | + * @g: gadget |
---|
1735 | 1734 | * @driver: gadget driver |
---|
1736 | | - * @bind: bind function |
---|
1737 | 1735 | * |
---|
1738 | 1736 | * When a driver is successfully registered, it will receive control requests |
---|
1739 | 1737 | * including set_configuration(), which enables non-control requests. Then |
---|
.. | .. |
---|
1775 | 1773 | /** |
---|
1776 | 1774 | * stop_activity - Stops udc endpoints |
---|
1777 | 1775 | * @udc: udc device |
---|
1778 | | - * @driver: gadget driver |
---|
1779 | 1776 | * |
---|
1780 | 1777 | * Disables all udc endpoints (even control endpoint), report disconnect to |
---|
1781 | 1778 | * the gadget user. |
---|
.. | .. |
---|
1792 | 1789 | |
---|
1793 | 1790 | /** |
---|
1794 | 1791 | * pxa27x_udc_stop - Unregister the gadget driver |
---|
1795 | | - * @driver: gadget driver |
---|
| 1792 | + * @g: gadget |
---|
1796 | 1793 | * |
---|
1797 | 1794 | * Returns 0 if no error, -ENODEV, -EINVAL otherwise |
---|
1798 | 1795 | */ |
---|
.. | .. |
---|
2349 | 2346 | |
---|
2350 | 2347 | /** |
---|
2351 | 2348 | * pxa_udc_probe - probes the udc device |
---|
2352 | | - * @_dev: platform device |
---|
| 2349 | + * @pdev: platform device |
---|
2353 | 2350 | * |
---|
2354 | 2351 | * Perform basic init : allocates udc clock, creates sysfs files, requests |
---|
2355 | 2352 | * irq. |
---|
2356 | 2353 | */ |
---|
2357 | 2354 | static int pxa_udc_probe(struct platform_device *pdev) |
---|
2358 | 2355 | { |
---|
2359 | | - struct resource *regs; |
---|
2360 | 2356 | struct pxa_udc *udc = &memory; |
---|
2361 | 2357 | int retval = 0, gpio; |
---|
2362 | 2358 | struct pxa2xx_udc_mach_info *mach = dev_get_platdata(&pdev->dev); |
---|
.. | .. |
---|
2378 | 2374 | udc->gpiod = devm_gpiod_get(&pdev->dev, NULL, GPIOD_ASIS); |
---|
2379 | 2375 | } |
---|
2380 | 2376 | |
---|
2381 | | - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
2382 | | - udc->regs = devm_ioremap_resource(&pdev->dev, regs); |
---|
| 2377 | + udc->regs = devm_platform_ioremap_resource(pdev, 0); |
---|
2383 | 2378 | if (IS_ERR(udc->regs)) |
---|
2384 | 2379 | return PTR_ERR(udc->regs); |
---|
2385 | 2380 | udc->irq = platform_get_irq(pdev, 0); |
---|