usb: gadget: fsl_udc_core: fixup struct_udc_setup documentation
authorNicholas Mc Guire <hofrat@osadl.org>
Thu, 30 Aug 2018 10:16:59 +0000 (12:16 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 2 Oct 2018 07:43:12 +0000 (10:43 +0300)
commit24b804e40f23a199e6d82de5b5571bb642490ca1
tree1fb4fa43b652de13ed0cdeec853d28b2a5aec3d9
parent4ab2b48c98f2ec9712452d520a381917f91ac3d2
usb: gadget: fsl_udc_core: fixup struct_udc_setup documentation

The original implementation from commit b504882da539
("USB: add Freescale high-speed USB SOC device controller driver")
returned NULL on failure and an allocated + initialized struct fsl_udc on
success. The current code introduced in commit 4365831dadfe
("USB: fsl_usb2_udc: Get max ep number from DCCPARAMS register") only
provides partial initialization as well as returning 0 on success and -1
on failures. The function documentation is updated accordingly.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Fixes: 4365831dadfe ("USB: fsl_usb2_udc: Get max ep number from DCCPARAMS register")
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/fsl_udc_core.c