From: Corentin Labbe <clabbe@baylibre.com> To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Corentin Labbe <clabbe@baylibre.com> Subject: [PATCH 08/20] usb: gadget: goku_udc: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:51 +0000 [thread overview] Message-ID: <1582054383-35760-9-git-send-email-clabbe@baylibre.com> (raw) In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> pci_driver name is const char pointer, so it not useful to cast driver_name (which is already const char). Signed-off-by: Corentin Labbe <clabbe@baylibre.com> --- drivers/usb/gadget/udc/goku_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/goku_udc.c b/drivers/usb/gadget/udc/goku_udc.c index 4a46f661d0e4..91dcb1995c27 100644 --- a/drivers/usb/gadget/udc/goku_udc.c +++ b/drivers/usb/gadget/udc/goku_udc.c @@ -1844,7 +1844,7 @@ static const struct pci_device_id pci_ids[] = { { MODULE_DEVICE_TABLE (pci, pci_ids); static struct pci_driver goku_pci_driver = { - .name = (char *) driver_name, + .name = driver_name, .id_table = pci_ids, .probe = goku_probe, -- 2.24.1
WARNING: multiple messages have this Message-ID (diff)
From: Corentin Labbe <clabbe@baylibre.com> To: alexandre.belloni@bootlin.com, b-liu@ti.com, balbi@kernel.org, gregkh@linuxfoundation.org, ludovic.desroches@microchip.com, mathias.nyman@intel.com, nicolas.ferre@microchip.com, slemieux.tyco@gmail.com, stern@rowland.harvard.edu, vz@mleia.com Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Corentin Labbe <clabbe@baylibre.com> Subject: [PATCH 08/20] usb: gadget: goku_udc: remove useless cast for driver.name Date: Tue, 18 Feb 2020 19:32:51 +0000 [thread overview] Message-ID: <1582054383-35760-9-git-send-email-clabbe@baylibre.com> (raw) In-Reply-To: <1582054383-35760-1-git-send-email-clabbe@baylibre.com> pci_driver name is const char pointer, so it not useful to cast driver_name (which is already const char). Signed-off-by: Corentin Labbe <clabbe@baylibre.com> --- drivers/usb/gadget/udc/goku_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/udc/goku_udc.c b/drivers/usb/gadget/udc/goku_udc.c index 4a46f661d0e4..91dcb1995c27 100644 --- a/drivers/usb/gadget/udc/goku_udc.c +++ b/drivers/usb/gadget/udc/goku_udc.c @@ -1844,7 +1844,7 @@ static const struct pci_device_id pci_ids[] = { { MODULE_DEVICE_TABLE (pci, pci_ids); static struct pci_driver goku_pci_driver = { - .name = (char *) driver_name, + .name = driver_name, .id_table = pci_ids, .probe = goku_probe, -- 2.24.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2020-02-18 19:34 UTC|newest] Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-02-18 19:32 [PATCH 00/20] usb: remove useless cast for driver.name Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:32 ` [PATCH 01/20] usb: gadget: legacy: gmidi: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:32 ` [PATCH 02/20] usb: gadget: legacy: inode: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:32 ` [PATCH 03/20] usb: gadget: udc: amd5536udc_pci: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:32 ` [PATCH 04/20] usb: gadget: at91_udc: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:40 ` Alexandre Belloni 2020-02-18 19:40 ` Alexandre Belloni 2020-02-18 19:32 ` [PATCH 05/20] usb: gadget: dummy_hcd: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:32 ` [PATCH 06/20] usb: gadget: fotg210-udc: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:32 ` [PATCH 07/20] usb: gadget: fusb300_udc: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe [this message] 2020-02-18 19:32 ` [PATCH 08/20] usb: gadget: goku_udc: " Corentin Labbe 2020-02-18 19:32 ` [PATCH 09/20] usb: gadget: lpc32xx_udc: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:41 ` Alexandre Belloni 2020-02-18 19:41 ` Alexandre Belloni 2020-02-18 19:32 ` [PATCH 10/20] usb: gadget: m66592-udc: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:32 ` [PATCH 11/20] usb: gadget: net2280: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:32 ` [PATCH 12/20] usb: gadget: omap_udc: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:32 ` [PATCH 13/20] usb: gadget: r8a66597-udc: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-19 0:43 ` Yoshihiro Shimoda 2020-02-19 0:43 ` Yoshihiro Shimoda 2020-02-18 19:32 ` [PATCH 14/20] usb: gadget: renesas_usb3: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-19 0:33 ` Yoshihiro Shimoda 2020-02-19 0:33 ` Yoshihiro Shimoda 2020-02-18 19:32 ` [PATCH 15/20] usb: host: ehci-pci: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:32 ` [PATCH 16/20] usb: host: ohci-pci: " Corentin Labbe 2020-02-18 19:32 ` Corentin Labbe 2020-02-18 19:33 ` [PATCH 17/20] usb: host: sl811-hcd: " Corentin Labbe 2020-02-18 19:33 ` Corentin Labbe 2020-02-18 19:33 ` [PATCH 18/20] usb: host: uhci-pci: " Corentin Labbe 2020-02-18 19:33 ` Corentin Labbe 2020-02-18 19:33 ` [PATCH 19/20] usb: host: xhci-pci: " Corentin Labbe 2020-02-18 19:33 ` Corentin Labbe 2020-02-18 19:33 ` [PATCH 20/20] usb: musb: core: " Corentin Labbe 2020-02-18 19:33 ` Corentin Labbe 2020-02-19 7:52 ` [PATCH 00/20] usb: " Johan Hovold 2020-02-19 7:52 ` Johan Hovold
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1582054383-35760-9-git-send-email-clabbe@baylibre.com \ --to=clabbe@baylibre.com \ --cc=alexandre.belloni@bootlin.com \ --cc=b-liu@ti.com \ --cc=balbi@kernel.org \ --cc=gregkh@linuxfoundation.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-usb@vger.kernel.org \ --cc=ludovic.desroches@microchip.com \ --cc=mathias.nyman@intel.com \ --cc=nicolas.ferre@microchip.com \ --cc=slemieux.tyco@gmail.com \ --cc=stern@rowland.harvard.edu \ --cc=vz@mleia.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.