]> git.baikalelectronics.ru Git - kernel.git/commit
can: gs_ubs: use KBUILD_MODNAME instead of hard coded names
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>
Tue, 26 Jul 2022 08:27:03 +0000 (17:27 +0900)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 26 Jul 2022 08:47:00 +0000 (10:47 +0200)
commit4df94471d05bfdeb4e9d8432f8e28c76ad64db2b
tree05ea837106cc27adfbc1d396627e732ffcb70aac
parent337961973783e3bb345f87cbb30b28a4a43c9092
can: gs_ubs: use KBUILD_MODNAME instead of hard coded names

The driver uses the string "gs_usb" to populate usb_driver::name,
can_bittiming_const::name and
can_data_bittiming_const::name. KBUILD_MODNAME evaluates to
"gs_ubs". 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-7-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/gs_usb.c