summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorCorentin Labbe <clabbe@baylibre.com>2020-02-18 20:32:49 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-19 11:10:25 +0100
commit4697bf3f7b84e111a29c726abac0512e1fbe501c (patch)
tree4f0f1f2ec99b6005fde4b11c9a6d0a320a3dc11a /drivers/usb/gadget
parentusb: gadget: dummy_hcd: remove useless cast for driver.name (diff)
downloadlinux-4697bf3f7b84e111a29c726abac0512e1fbe501c.tar.xz
linux-4697bf3f7b84e111a29c726abac0512e1fbe501c.zip
usb: gadget: fotg210-udc: remove useless cast for driver.name
device_driver name is const char pointer, so it not useful to cast udc_name (which is already const char). Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Link: https://lore.kernel.org/r/1582054383-35760-7-git-send-email-clabbe@baylibre.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/udc/fotg210-udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/fotg210-udc.c b/drivers/usb/gadget/udc/fotg210-udc.c
index 21f3e6c4e4d6..d6ca50f01985 100644
--- a/drivers/usb/gadget/udc/fotg210-udc.c
+++ b/drivers/usb/gadget/udc/fotg210-udc.c
@@ -1199,7 +1199,7 @@ err:
static struct platform_driver fotg210_driver = {
.driver = {
- .name = (char *)udc_name,
+ .name = udc_name,
},
.probe = fotg210_udc_probe,
.remove = fotg210_udc_remove,