]> git.baikalelectronics.ru Git - kernel.git/commit
can: ubs_8dev: use KBUILD_MODNAME instead of hard coded names
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Tue, 26 Jul 2022 08:27:05 +0000 (17:27 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 26 Jul 2022 08:47:00 +0000 (10:47 +0200)
commit36017c734aa41f91590b6ab7c2cd8e11a93c3349
treec0a6a31d405f33479d5cfebc121b123bab30de6f
parente89df8fb4b8c9e76e1ab21754bbba2e09281e689
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 <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>
drivers/net/can/usb/usb_8dev.c