summaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs/rza.c
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2019-06-25 14:38:55 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-26 10:33:09 +0800
commitbe0a42a7d62605cfcabd8cbba6c104a80471cd94 (patch)
tree56d0611ebbaabb997664d5fb565cd783679ebb45 /drivers/usb/renesas_usbhs/rza.c
parentb3103d0b022f8ce87d68994417bbf2765329da3a (diff)
downloadlinux-be0a42a7d62605cfcabd8cbba6c104a80471cd94.tar.gz
linux-be0a42a7d62605cfcabd8cbba6c104a80471cd94.tar.bz2
linux-be0a42a7d62605cfcabd8cbba6c104a80471cd94.zip
usb: renesas_usbhs: Add a common function for the .get_id
All platform related codes (rcar[23].c and rza{2}.c) has its own .get_id function as "USBHS_GADGET". So, we can use a common function for it. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/renesas_usbhs/rza.c')
-rw-r--r--drivers/usb/renesas_usbhs/rza.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/usb/renesas_usbhs/rza.c b/drivers/usb/renesas_usbhs/rza.c
index 8c739bd24acd..64ce584d4f0b 100644
--- a/drivers/usb/renesas_usbhs/rza.c
+++ b/drivers/usb/renesas_usbhs/rza.c
@@ -3,7 +3,7 @@
* Renesas USB driver RZ/A initialization and power control
*
* Copyright (C) 2018 Chris Brandt
- * Copyright (C) 2018 Renesas Electronics Corporation
+ * Copyright (C) 2018-2019 Renesas Electronics Corporation
*/
#include <linux/delay.h>
@@ -41,12 +41,7 @@ static int usbhs_rza1_hardware_init(struct platform_device *pdev)
return 0;
}
-static int usbhs_rza_get_id(struct platform_device *pdev)
-{
- return USBHS_GADGET;
-}
-
const struct renesas_usbhs_platform_callback usbhs_rza1_ops = {
.hardware_init = usbhs_rza1_hardware_init,
- .get_id = usbhs_rza_get_id,
+ .get_id = usbhs_get_id_as_gadget,
};