]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
can: kvaser_usb: use KBUILD_MODNAME instead of hard coded names
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Tue, 26 Jul 2022 08:27:04 +0000 (17:27 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 26 Jul 2022 08:47:00 +0000 (10:47 +0200)
The driver uses the string "kvaser_usb" to populate
usb_driver::name. KBUILD_MODNAME also evaluates to "kvaser_ubs". Use
KBUILD_MODNAME and get rid on the hardcoded string names.

Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20220726082707.58758-8-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/kvaser_usb/kvaser_usb_core.c

index f211bfcb1d97e8f05f9ab2bb180619538fa1b578..ce60b16ac8eea7f0f39811f54f87331b2107cb5b 100644 (file)
@@ -869,7 +869,7 @@ static void kvaser_usb_disconnect(struct usb_interface *intf)
 }
 
 static struct usb_driver kvaser_usb_driver = {
-       .name = "kvaser_usb",
+       .name = KBUILD_MODNAME,
        .probe = kvaser_usb_probe,
        .disconnect = kvaser_usb_disconnect,
        .id_table = kvaser_usb_table,