Commit 6f266060 authored by Vincent Mailhol's avatar Vincent Mailhol Committed by Marc Kleine-Budde

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: default avatarVincent Mailhol <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20220726082707.58758-9-mailhol.vincent@wanadoo.frSigned-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent 63c286e6
...@@ -871,7 +871,7 @@ static const struct net_device_ops usb_8dev_netdev_ops = { ...@@ -871,7 +871,7 @@ static const struct net_device_ops usb_8dev_netdev_ops = {
}; };
static const struct can_bittiming_const usb_8dev_bittiming_const = { static const struct can_bittiming_const usb_8dev_bittiming_const = {
.name = "usb_8dev", .name = KBUILD_MODNAME,
.tseg1_min = 1, .tseg1_min = 1,
.tseg1_max = 16, .tseg1_max = 16,
.tseg2_min = 1, .tseg2_min = 1,
...@@ -997,7 +997,7 @@ static void usb_8dev_disconnect(struct usb_interface *intf) ...@@ -997,7 +997,7 @@ static void usb_8dev_disconnect(struct usb_interface *intf)
} }
static struct usb_driver usb_8dev_driver = { static struct usb_driver usb_8dev_driver = {
.name = "usb_8dev", .name = KBUILD_MODNAME,
.probe = usb_8dev_probe, .probe = usb_8dev_probe,
.disconnect = usb_8dev_disconnect, .disconnect = usb_8dev_disconnect,
.id_table = usb_8dev_table, .id_table = usb_8dev_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