Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: cdns3: core: Fix a couple of incorrectly documented function names

Fixes the following W=1 kernel build warning(s):

drivers/usb/cdns3/core.c:342: warning: expecting prototype for cdsn3_role_get(). Prototype was for cdns_role_get() instead
drivers/usb/cdns3/core.c:428: warning: expecting prototype for cdns_probe(). Prototype was for cdns_init() instead

Cc: Peter Chen <peter.chen@kernel.org>
Cc: Pawel Laszczak <pawell@cadence.com>
Cc: Roger Quadros <rogerq@kernel.org>
Cc: Aswath Govindraju <a-govindraju@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org
Acked-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210526130037.856068-2-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Lee Jones and committed by
Greg Kroah-Hartman
47a4edc7 c037b6c8

+2 -2
+2 -2
drivers/usb/cdns3/core.c
··· 332 332 } 333 333 334 334 /** 335 - * cdsn3_role_get - get current role of controller. 335 + * cdns_role_get - get current role of controller. 336 336 * 337 337 * @sw: pointer to USB role switch structure 338 338 * ··· 419 419 } 420 420 421 421 /** 422 - * cdns_probe - probe for cdns3/cdnsp core device 422 + * cdns_init - probe for cdns3/cdnsp core device 423 423 * @cdns: Pointer to cdns structure. 424 424 * 425 425 * Returns 0 on success otherwise negative errno