Commit 4741b3ae authored by Vincent Mailhol's avatar Vincent Mailhol Committed by Marc Kleine-Budde

can: esd_usb: use KBUILD_MODNAME instead of hard coded names

The driver uses the string "ems_usb" to populate
usb_driver::name. KBUILD_MODNAME also evaluates to "esd_ubs". Use
KBUILD_MODNAME and get rid on the hardcoded string names.

CC: Frank Jungclaus <frank.jungclaus@esd.eu>
Signed-off-by: default avatarVincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20220726082707.58758-6-mailhol.vincent@wanadoo.frSigned-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 90a13aec
...@@ -1138,7 +1138,7 @@ static void esd_usb_disconnect(struct usb_interface *intf) ...@@ -1138,7 +1138,7 @@ static void esd_usb_disconnect(struct usb_interface *intf)
/* usb specific object needed to register this driver with the usb subsystem */ /* usb specific object needed to register this driver with the usb subsystem */
static struct usb_driver esd_usb_driver = { static struct usb_driver esd_usb_driver = {
.name = "esd_usb", .name = KBUILD_MODNAME,
.probe = esd_usb_probe, .probe = esd_usb_probe,
.disconnect = esd_usb_disconnect, .disconnect = esd_usb_disconnect,
.id_table = esd_usb_table, .id_table = esd_usb_table,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment