Skip to content

Commit

Permalink
can: ubs_8dev: use KBUILD_MODNAME instead of hard coded names
Browse files Browse the repository at this point in the history
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 <mailhol.vincent@wanadoo.fr>
Link: https://lore.kernel.org/all/20220726082707.58758-9-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
  • Loading branch information
Vincent Mailhol authored and Marc Kleine-Budde committed Jul 26, 2022
1 parent 63c286e commit 6f26606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/can/usb/usb_8dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6f26606

Please sign in to comment.