diff options
| author | Vincent Mailhol <[email protected]> | 2022-07-26 08:27:05 +0000 |
|---|---|---|
| committer | Marc Kleine-Budde <[email protected]> | 2022-07-26 08:47:00 +0000 |
| commit | 6f2660607282df1c9b57aafb131c6e4432a3bf7a (patch) | |
| tree | c0a6a31d405f33479d5cfebc121b123bab30de6f | |
| parent | can: kvaser_usb: use KBUILD_MODNAME instead of hard coded names (diff) | |
| download | kernel-6f2660607282df1c9b57aafb131c6e4432a3bf7a.tar.gz kernel-6f2660607282df1c9b57aafb131c6e4432a3bf7a.zip | |
can: ubs_8dev: use KBUILD_MODNAME instead of hard coded names
The driver uses the string "usb_8dev" to populate usb_driver::name and
can_bittiming_const::name. KBUILD_MODNAME also evaluates to
"ubs_8dev". Use KBUILD_MODNAME and get rid on the hardcoded string
names.
Signed-off-by: Vincent Mailhol <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Marc Kleine-Budde <[email protected]>
| -rw-r--r-- | drivers/net/can/usb/usb_8dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/can/usb/usb_8dev.c b/drivers/net/can/usb/usb_8dev.c index 8b7cd69e20b0..6665a66745a7 100644 --- a/drivers/net/can/usb/usb_8dev.c +++ b/drivers/net/can/usb/usb_8dev.c @@ -871,7 +871,7 @@ static const struct net_device_ops usb_8dev_netdev_ops = { }; static const struct can_bittiming_const usb_8dev_bittiming_const = { - .name = "usb_8dev", + .name = KBUILD_MODNAME, .tseg1_min = 1, .tseg1_max = 16, .tseg2_min = 1, @@ -997,7 +997,7 @@ static void usb_8dev_disconnect(struct usb_interface *intf) } static struct usb_driver usb_8dev_driver = { - .name = "usb_8dev", + .name = KBUILD_MODNAME, .probe = usb_8dev_probe, .disconnect = usb_8dev_disconnect, .id_table = usb_8dev_table, |
