Messages in this thread Patch in this message | | | Date | Fri, 5 Aug 2022 18:27:53 +0200 | From | Grzegorz Szymaszek <> | Subject | [PATCH v2 2/4] staging: r8188eu: use KBUILD_MODNAME instead of a string constant |
| |
The field .usbdrv.name of the struct rtw_usb_drv hardcoded the module (driver) name as a constant string. Replace the string with the KBUILD_MODNAME macro.
Link: https://lore.kernel.org/lkml/Yuy7QSh%2FclQ5Ki09@kroah.com/ Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Grzegorz Szymaszek <gszymaszek@short.pl> --- V1 -> V2: Split v1-0002 into v2-0002 and v2-0003. Replace the constant string with KBUILD_MODNAME instead of DRV_NAME
drivers/staging/r8188eu/os_dep/usb_intf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/r8188eu/os_dep/usb_intf.c b/drivers/staging/r8188eu/os_dep/usb_intf.c index 68869c5daeff..b845f5ec5489 100644 --- a/drivers/staging/r8188eu/os_dep/usb_intf.c +++ b/drivers/staging/r8188eu/os_dep/usb_intf.c @@ -54,7 +54,7 @@ struct rtw_usb_drv { }; static struct rtw_usb_drv rtl8188e_usb_drv = { - .usbdrv.name = "r8188eu", + .usbdrv.name = KBUILD_MODNAME, .usbdrv.probe = rtw_drv_init, .usbdrv.disconnect = rtw_dev_remove, .usbdrv.id_table = rtw_usb_id_tbl, -- 2.35.1
| |