mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 09:41:54 +09:00
can: kvaser_usb: use KBUILD_MODNAME instead of hard coded names
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>
This commit is contained in:
committed by
Marc Kleine-Budde
parent
c250d5eb22
commit
63c286e608
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user