* [PATCH] macintosh: macio_asic: remove useless cast for driver.name
@ 2022-01-25 13:54 Corentin Labbe
2022-02-15 5:26 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Corentin Labbe @ 2022-01-25 13:54 UTC (permalink / raw)
To: benh; +Cc: linuxppc-dev, linux-kernel, Corentin Labbe
pci_driver name is const char pointer, so the cast it not necessary.
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
drivers/macintosh/macio_asic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/macintosh/macio_asic.c b/drivers/macintosh/macio_asic.c
index c1fdf2896021..1943a007e2d5 100644
--- a/drivers/macintosh/macio_asic.c
+++ b/drivers/macintosh/macio_asic.c
@@ -756,7 +756,7 @@ MODULE_DEVICE_TABLE (pci, pci_ids);
/* pci driver glue; this is a "new style" PCI driver module */
static struct pci_driver macio_pci_driver = {
- .name = (char *) "macio",
+ .name = "macio",
.id_table = pci_ids,
.probe = macio_pci_probe,
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] macintosh: macio_asic: remove useless cast for driver.name
2022-01-25 13:54 [PATCH] macintosh: macio_asic: remove useless cast for driver.name Corentin Labbe
@ 2022-02-15 5:26 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2022-02-15 5:26 UTC (permalink / raw)
To: Corentin Labbe, benh; +Cc: linuxppc-dev, linux-kernel
On Tue, 25 Jan 2022 13:54:21 +0000, Corentin Labbe wrote:
> pci_driver name is const char pointer, so the cast it not necessary.
>
>
Applied to powerpc/next.
[1/1] macintosh: macio_asic: remove useless cast for driver.name
https://git.kernel.org/powerpc/c/ccafe7c20b7de330d9091a114c9985305759f1ee
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-15 5:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25 13:54 [PATCH] macintosh: macio_asic: remove useless cast for driver.name Corentin Labbe
2022-02-15 5:26 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).