mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02: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:
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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user