提交 47a4edc7 编写于 作者: L Lee Jones 提交者: Greg Kroah-Hartman

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: NPeter Chen <peter.chen@kernel.org>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210526130037.856068-2-lee.jones@linaro.orgSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 c037b6c8
...@@ -332,7 +332,7 @@ int cdns_hw_role_switch(struct cdns *cdns) ...@@ -332,7 +332,7 @@ int cdns_hw_role_switch(struct cdns *cdns)
} }
/** /**
* cdsn3_role_get - get current role of controller. * cdns_role_get - get current role of controller.
* *
* @sw: pointer to USB role switch structure * @sw: pointer to USB role switch structure
* *
...@@ -419,7 +419,7 @@ static irqreturn_t cdns_wakeup_irq(int irq, void *data) ...@@ -419,7 +419,7 @@ static irqreturn_t cdns_wakeup_irq(int irq, void *data)
} }
/** /**
* cdns_probe - probe for cdns3/cdnsp core device * cdns_init - probe for cdns3/cdnsp core device
* @cdns: Pointer to cdns structure. * @cdns: Pointer to cdns structure.
* *
* Returns 0 on success otherwise negative errno * Returns 0 on success otherwise negative errno
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册