diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-11-14 11:42:11 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-11-26 10:58:17 -0600 |
commit | 574f24f797718937b48befb97d13850d5bebb72c (patch) | |
tree | 17ac55080dbbd6a27ac646e0ba24c915b143240f /drivers/usb/gadget/u_ether.h | |
parent | 7de7174aa36f548a53c26d6841f3f7aeb449513b (diff) | |
download | linux-574f24f797718937b48befb97d13850d5bebb72c.tar.bz2 |
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: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/u_ether.h')
-rw-r--r-- | drivers/usb/gadget/u_ether.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/u_ether.h b/drivers/usb/gadget/u_ether.h index fb23d1fde8eb..a32b41e27450 100644 --- a/drivers/usb/gadget/u_ether.h +++ b/drivers/usb/gadget/u_ether.h @@ -106,7 +106,7 @@ struct eth_dev *gether_setup_name(struct usb_gadget *g, * gadget driver using this framework. The link layer addresses are * 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, const char *dev_addr, const char *host_addr, |