提交 574f24f7 编写于 作者: D Dan Carpenter 提交者: Felipe Balbi

usb: gadget: update some out of date comments

These functions used to return negative errror codes but now they return
ERR_PTRs.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 7de7174a
...@@ -753,7 +753,7 @@ static struct device_type gadget_type = { ...@@ -753,7 +753,7 @@ static struct device_type gadget_type = {
* gadget driver using this framework. The link layer addresses are * gadget driver using this framework. The link layer addresses are
* set up using module parameters. * set up using module parameters.
* *
* Returns negative errno, or zero on success * Returns an eth_dev pointer on success, or an ERR_PTR on failure.
*/ */
struct eth_dev *gether_setup_name(struct usb_gadget *g, struct eth_dev *gether_setup_name(struct usb_gadget *g,
const char *dev_addr, const char *host_addr, const char *dev_addr, const char *host_addr,
......
...@@ -106,7 +106,7 @@ struct eth_dev *gether_setup_name(struct usb_gadget *g, ...@@ -106,7 +106,7 @@ struct eth_dev *gether_setup_name(struct usb_gadget *g,
* gadget driver using this framework. The link layer addresses are * gadget driver using this framework. The link layer addresses are
* set up using module parameters. * set up using module parameters.
* *
* Returns negative errno, or zero on success * Returns a eth_dev pointer on success, or an ERR_PTR on failure
*/ */
static inline struct eth_dev *gether_setup(struct usb_gadget *g, static inline struct eth_dev *gether_setup(struct usb_gadget *g,
const char *dev_addr, const char *host_addr, const char *dev_addr, const char *host_addr,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册