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>
This commit is contained in:
parent
7de7174aa3
commit
574f24f797
2 changed files with 2 additions and 2 deletions
|
@ -753,7 +753,7 @@ static struct device_type gadget_type = {
|
|||
* gadget driver using this framework. The link layer addresses are
|
||||
* 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,
|
||||
const char *dev_addr, const char *host_addr,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue